2 ms·
The pattern I don't like is the one where people load JS like jQuery from a CDN with a local fallback if that doesn't work: - realistically, nobody is going to
by seanwilson 6y ago
The pattern I don't like is the one where people load JS like jQuery from a CDN with a local fallback if that doesn't work:
- realistically, nobody is going to be testing if the fallback functionality works as the site grows so you're going to get weird breakages if the fallback misbehaves (e.g. your local file is a different version).
- big CDNs go down so rarely it's not worth thinking about (and if it is serve it from your own site)
- it's easy nowadays to put your whole site behind a CDN so there's little point (the article debunks the caching advantages)
I think people are just copy/pasting snippets that do this from somewhere without thinking.