Is there a global approach to catch network errors in javascript
The window.onerror handler catches Javascript errors in Chrome 13+, Firefox 6.0+, Internet Explorer 5.5+, Opera 11.60+ and Safari 5.1+. There’s already a really good answer on StackOverflow which provides a lot of information about it. It does not catch failures to load resources, though. As far as other elements (such as images) are concerned, jQuery … Read more