4 ms·
This has been shown to not necessarily always be the best option for performance. See http://blog.getify.com/2009/11/labjs-why-not-just-concat/ http://blog.geti
by morganpyne 16y ago
This has been shown to not necessarily always be the best option for performance. See http://blog.getify.com/2009/11/labjs-why-not-just-concat/ http://blog.getify.com/2009/11/labjs-why-not-just-concat/, and http://yepnopejs.com/ http://yepnopejs.com/
The best and brightest in the JS performance area now mostly advocate using some form of loader to load the JavaScripts, bearing in mind that the overall page speed and perceived performance can be affected by more factors than simply the number of script files that need to be requested. Hence the recent proliferation of things like yepnope.js, require.js, lab.js etc.
The fastest and best approach for your particular site will be specific to your site and there is no generic solution guaranteed to be optimal.