So do you want “we want to load JS from a CDN like literally everyone does, is that okay” popups on every website?
- reduces the number of TCP connections - reduced the risk of failure if the relevant edge node can't be reached
Browsers don't support cross-site caching of 3rd-party content so whatever limited benefits there might have been of using a library CDN are long gone
It's about getting jquery physically closer to your users. And sure upload it to your "own" CDN that you pay Azure or whoever for.
I be willing to bet that most web developers don't know about how the browser cache is partitioned
And most people don't know that it never really worked (apart from perhaps a few Google fonts)
Well, carry on and load it, it's your server.
Oh, wait, you mean you want ME to load it, into MY browser? That's a problem - my browser only loads JS from the origin server, and only if I give it explicit permission.
As a developer, I deplore the use of CDNs to serve javascript libraries; you don't know what the CDN is going to serve to your users, it could change without warning and break your site.
https://developer.mozilla.org/en-US/docs/Web/Security/Subres...
Neither is widespread. Leaving users, especially vulnerable ones, to the whims of businesses.
Privacy isn't a "technical matter".
The internet is just not designed for privacy at a technical level.
The Internet is A-Ok.
The issue lies with various slimy companies that exploit web developers ignorance, laziness and negligence with free and easy shortcuts in exchange for the private data of said developers' clients.
No one's forcing you to use CDNs in place of a properly setup caching. No one's stuffing Google Fonts down your designer's throat, they are just lazy to add local resources. An analytics service is not required and there are simple self-hosted options. And so on and so forth.
And the most infuriating part is that these companies, Google being the offender, know perfectly well that they are exploiting the ignorance and they are willingly facilitating and encouraging the spread of practices that would've been viewed as wildly unethical not 10-15 years ago.
Just look at the level of general erosion of privacy and nearly universal lack of concern for it in general population. If you reflect on it for a moment, it is plain fucking scary.