24 ms·
I could be wrong, but if you use a CDN, won't jQuery be already cached for 99% of users? I can definitely imagine that filesize is an issue with less popular fr
by RaphiePS 13y ago
I could be wrong, but if you use a CDN, won't jQuery be already cached for 99% of users? I can definitely imagine that filesize is an issue with less popular frameworks, but I'd wager that it really doesn't matter with jQuery.
If anyone has statistics on this, I'd love to see them!
- shadeless 13y agoYou're in fact wrong, the chance that users will have exactly the same version of jQuery cached is pretty small. [1] If you want to read more about jQuery on cdns, there is a long discussion on html5boilerplate github page. [2] [1] http://statichtml.com/2011/google-ajax-libraries-caching.html http://statichtml.com/2011/google-ajax-libraries-caching.htm... [2] https://github.com/h5bp/html5-boilerplate/pull/1327 https://github.com/h5bp/html5-boilerplate/pull/1327
- RaphiePS 13y agoWell dang, thanks for pointing out my error and providing sources to back it up.