BFE.dev
Front-End Interview Questions28. How to detect crash of a web page?

28. How to detect crash of a web page?

Browser
Share

A very interesting question. onbeforeunload could be used to let us know right before a page is unloaded.

But if the web page crashes, the JavaScript doesn't even have chance to run.

So how could we know that a web page crashed because of unexpected reasons?

prevnext
Request SolutionAIPosts(5)