4 ms·
But the reality is, everyone that visits your site already has jQuery in their cache, because the common cdn sources are so ubiquitous, this making this 4k libr
by hnriot 13y ago
But the reality is, everyone that visits your site already has jQuery in their cache, because the common cdn sources are so ubiquitous, this making this 4k library actually add to your page load footprint. Using the most common, most likely to be a cache hit library is more efficient than using the smallest.
- LocalPCGuy 13y agoPeople need to stop saying this.
- rralian 13y agoPlease elaborate.
- waitwhat 13y agoOne thing... Mobile Safari didn't use to cache anything over 15KB uncompressed. http://www.phpied.com/iphone-caching/ http://www.phpied.com/iphone-caching/ (No idea about more current versions of iOS or browser-caching on other mobiles OSs.)
- adventured 13y agoIt's a reasonable point. Given the vast array of jQuery versioning across just the top thousand web sites, it's very plausible a user will not have each one of those cached, and then a lot of sites vary on what cdn (if not local) they're using. I would be willing to bet that among just the top 1,000 sites, a user would be required to have 25 to 30 copies of jQuery cached to cover all the sites.