-
How to really check with JavaScript if CSS failed to load from a CDN
I want to load a third-party CSS stylesheet from a CDN, but I’m concerned how it will affect my site if the CDN goes down. How do I use JavaScript to check if a CSS file has loaded so I can load a local fallback instead? This can’t be a new idea. I can get […]