Hacker News new | ask | show | jobs
by raverbashing 4532 days ago
So, yeah, one thing that I learned about these CDNs

They will stop working eventually

So you may try to load from them, but always have a fallback. In your website

An example: what if code.jquery.org gets compromised?

1 comments

In that case your fallback isn't going to help - unless you're performing a checksum on the response you get from code.jquery.org.

I know it's probably not considered great practice anymore but I generally just self host js libs. One less thing to go wrong and I often develop without an internet connection. Saves on having to dropback to a fallack every time.

Yes, true, in the case of a compromise it won't help. But I've found that outages are more frequent (including my own internet connection)

So yes, it also is necessary for development without an internet connection.