5 ms·
> That means, for example, use DoubleClick or AdSense or GoogleAnalytics if you like, but please do not use jquery from Google's CDNs. Why is Google Analytics
by chrisan 9y ago
> That means, for example, use DoubleClick or AdSense or GoogleAnalytics if you like, but please do not use jquery from Google's CDNs.
Why is Google Analytics ok and not their CDN?
- codefined 9y agoA website still functions without Google Analytics. 99% of websites won't function if they lose a key library.
- bryanrasmussen 9y agomaybe this means Google Analytics isn't a key library?
- colordrops 9y agoThat's what the person you are responding to is saying.
- tree_of_item 9y agoYes that's what people in this thread have been saying. I'm not sure what your point is.
- deleted 9y ago[deleted]
- gub09 9y agoMy point is that anyone can use an adblocker or Squid proxy filtering to block GoogleAnalytics, but if the site uses jquery from a Google CDN to render content, that cannot be blocked without making the site unusable. It's even worse if the Google CDN request is made with https, because then a redirection needs to be made inside the browser.
- CydeWeys 9y agoCan't you whitelist the specific jQuery library on Google's CDN though? Serving widely used libraries out of a CDN is a best practice for a reason. Most visitors will already have it in cache. What alternative are you supposing? Local hosting? That has drawbacks, including more cache misses and increased bandwidth costs for the website provider.
- arcticfox 9y agoRight, but then Google can leverage their CDN to track you, whether or not you also let them show you ads through normal channels. Ideally people would use a CDN not built to track people around. Presumably once Google traps you into an unblockable ad channel (on mobile or whatever) they will unleash the tracking they've been doing on you.
- gub09 9y agoNo doubt Google considers it a best practice, because they are in the business of knowing what people do on the internet. How often will a browser get the jquery for a particular website or check with the CDN? There are a lot of jquery versions in use, the cache gets deleted (often on browser close) or expires, cache-age=0, etc. Almost always? Besides providing jquery themselves, websites can use a CDN from another provider. OK, that might cost an extra 20 ms.
- notyourwork 9y agoIt's really not as beneficial as it sounds in theory. Sites uses different versions of these libraries. You would be better serving a single minified asset that is cached for your users.
- mabcat 9y agoIt's not always the user doing the blocking. A lot of sites broke for me when I was in China because they were trying to fetch resources from Google's CDN, which is/was blocked there.
- CydeWeys 9y ago