CDN-hosted JavaScript Represents an Additional Point of Failure

With the recent launch of jsDelivr, I came across a good discussion on Hacker News. With everything seemingly going towards CDN-hosted assets these days, Andrian Rossouw had some valid concerns about that recent trend. Most notably, his example about living behind the Great Firewall of China and not being to properly load a website really struck a chord. That’s the kind of problem that is hard to track down and that can have disastrous effects on the long term. I still think CDN-hosted libraries are great for rapid prototyping and for very small projects, but you do have to be careful and think twice before using that kind of code on larger projects.