How to tell if a tag failed to load
UPDATE 2021: All browsers today support onerror=”” on script tags, examples: Building script tag in js on MDN Html example by @Rudey in comments: <script src=”nonexistent.js” onerror=”alert(‘error!’)”></script> Original comment from 2010: If you only care about html5 browsers you can use error event. From the spec: If the src attribute’s value is the empty string … Read more