3 ms·
Sure, if JQuery's the only JavaScript file on the page. But if you use multiple plugins that depend upon JQuery, you're usually better off concatenating them a
by nostrademons 18y ago
Sure, if JQuery's the only JavaScript file on the page. But if you use multiple plugins that depend upon JQuery, you're usually better off concatenating them all into one file, minifying that, and GZipping the content. You'll get slightly better compression than if you serve them separately, and don't need to worry about multiple HTTP requests.
- gommm 18y agoYes but you lose the benefit of the cache of jquery.min.js some people may already have when loading the first page of your site (the most important time for performance)
- nostrademons 18y agoTrue, but they're not going to hit the cache anyway for the plugins, so download time will still be slow.