Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

Include Many (include files on demand)


You can include multiple js, css, html files on demand.
This plugin provides callback for each of the files and in addition there is finallyCallback which will be raised after all files are loaded and all callbacks are done.
This extra callback guarantee that every files are loaded and available to use.

$.include('someCSS.css');
var globalCallback= function(){
$.trace('all files are loaded!!!');
}
$.include( ['template.html','script2.js'] ,globalCallback);
var globalCallback= function(){
$.trace('all files are loaded!!!');
}
$.include(
{
'script1.js':function(){ /*something*/ },
'script2.js':function(){ /*something*/ },
'somecss.css:null,
'temp2.html':function(data){alert(data)}
}
,globalCallback
);

To find out more and download the samples check here http://www.arashkarimzadeh.com/jquery/17-includemany-jquery-include-many...

Downloads



5
Your rating: None Average: 5 (2 votes)