dimanche 5 novembre 2017

Detect browser download errors in web application

Is there a way to detect download errors once the JS application starts? Like the ones shown here as an example:

enter image description here

Want to detect JS/CSS file download errors (which may be due to network down, etc.). Say, if I detect any of these failures I can render a error page instead of showing broken pages (due to missing styles etc.). My application uses lots of third party plugins so I won't know which files are being loaded - so can't verify loading of specific styles..

Are there any chrome API callbacks ? I am ok with any chrome-specific solution as that's our only fully supported browser.

For JS errors themselves I can use window.onerror but this seems out of scope.




Aucun commentaire:

Enregistrer un commentaire