4 ms·
Do you really have to load jquery for a couple of lines that could be done in pure js? I run a local proxy to redirect hosted libraries like jquery. Google coul
by ethana 11y ago
Do you really have to load jquery for a couple of lines that could be done in pure js?
I run a local proxy to redirect hosted libraries like jquery. Google could and probably tracks where everyone's been on the web when loading their hosted libraries. Pretty much bypass adblockers altogether.
- k1m 11y agoAgree. We'll remove jQuery dependence and move remote JS/CSS files to the same server.
- skoczymroczny 11y agoHow come? Shouldn't the browser cache the jquery library and very rarely do a connection to Google CDN?
- dspillett 11y agoIt isn't just the network load. If you are on a small device the RAM use is not entirely insignificant. The CPU load too, though I think the use of animation/video in adverts is more of a problem in that respect than the overhead of using jQuery instead of modern DOM APIs directly. Even just considering network load, you need to be careful about the cache control headers that you send to ensure that all common browsers will cache content (see http://blog.httpwatch.com/2011/01/28/top-7-myths-about-https/ http://blog.httpwatch.com/2011/01/28/top-7-myths-about-https... amongst other references) and you have to be careful not to accidentally indicate that it is OK to cache something sensitive (which is why some servers send blanked "don't cache" headers for HTTPS responses unless explicitly ordered otherwise, it is the safest default).
- propogandist 11y ago>I run a local proxy to redirect hosted libraries like jquery. how to do this?