Re:The average size of Web pages is now the average size of ...
by Conlectus on Friday April 22, 2016 @09:43AM
(#11549060)
There are approximately 5 million different CDNs hosting different versions of jQuery. Cache hits are actually quite low.
[ Parent
| on HN ]
Re:The average size of Web pages is now the average size of ...
by Grishnakh on Friday April 22, 2016 @10:57AM
(#11549650)
I have a small website that uses jQuery, but I by default point to the Google-hosted version (with a fallback to my own site if that fails), but I also use an older version that's a little over half the size of the current version.
What I'd like to see, however, is a way of trimming down jQuery to only include the functions I actually use. I only use two functions out of the whole library IIRC, so I really don't need to load the whole thing. Maybe one day when I have some spare time and other projects out of the way I'll try stripping those functions out of jQuery and just hosting them locally.
Re:The average size of Web pages is now the average size of ...
by tedmiston on Friday April 22, 2016 @10:16AM
(#11549346)
Three popular ones is not "approximately 5 million": Google, cdnjs, MaxCDN.
Re:The average size of Web pages is now the average size of ...
by notahacker on Friday April 22, 2016 @04:05PM
(#11552210)
even the sites using one of these 3 CDNs probably specify aa specific minor version of jQuery from this list http://code.jquery.com/jquery/
(OK, so I doubt many sites are specifying the beta or uncompressed versions, but there's still a pretty good chance that somebody hasn't downloaded the relevant version from the relevant CDN recently enough for it to be in their cache, especially if they're browsing on their phone)