currently learning Flask , Bootstrap and Moment (haven't done anything like this for 20 years) - why does so much *default* to going through external CDNs (when the resources are already on this server) and you have to put extra effort into switching that off?

This just seems to be introducing single points of failure at the CDNs, making the server dependent on the external Internet and asking for trouble further down the line.

Is this how all modern stuff is normally coded?

Follow

@vfrmedia

Because this is what all the dev guides and tools like Google Lighthouse will literally tell you - you *must* use a CDN and you *must* load Google Analytics for your website to be worthwhile 🀷

Β· Β· 1 Β· 0 Β· 1

@kravietz which ignores use cases where the server and the other systems feeding it are all on the same network and intended to remain functional if the external Internet is absent...

@vfrmedia Internet described in these guides ignores a whole lot of reality outside of Google ecosystem πŸ˜‰ But that's the purpose.

This is the whole point of these websites:

youmightnotneedjquery.com/
vanilla-js.com/

Otherwise you'll end with 10 lines of HTML loading 12 MB of JS and CSS only to make one div foldable...

Sign in to participate in the conversation
Mastodon πŸ” privacytools.io

Fast, secure and up-to-date instance. PrivacyTools provides knowledge and tools to protect your privacy against global mass surveillance.

Website: privacytools.io
Matrix Chat: chat.privacytools.io
Support us on OpenCollective, many contributions are tax deductible!