I find it difficult to decide which approach is better in terms of site performance.
Either have all the necessary jQuery plugins in one file that will be included on each page of the site, or split the plugins into separate files and use the jQuery.getScript () method to load them as needed.
Is there any real benefit to loading scripts asynchronously on a single HTTP request?
All my Javascript will be reduced and gzipped.
Thanks!
mindwire22
source share