Hi, > A lot of people prefer to package up all the plug-ins they use on a site > and then pack/minimize it into one file. This method can be really > affective for plug-ins that are used as part of the core site theme.
1. When your pages have very different functionality, it is more efficient to load only what you need. 2. When you don't need all Libraries from the beginning (e.g. some of them just after a specific element has been clicked) you can increase User experience by loading them later. > For this reason only, I see benefit is just have a very simple basic > plug-in registration method for jQuery. That can be done with jsPax as well, btw: --- my.js $package('my.first.package',{ ... }); $package('my.second.package',{ ... }); $package('my',{}); --- $using('my', function() { // we have both packages availabe here $using('my.first.package', function() { // jsPax doesn't try to load anything here }); }); if( $package.packagefinished('my.first.package') ) { // package 'my.first.package' is available here } else { // package 'my.first.package' is not available here } You can even pack all the packages in your main script and inside the same script use $using(). The packages ar already availabe then and nothing will be loaded. Christof