Answer the question
In order to leave comments, you need to log in
Javascript: Tracing errors on clients
Preamble:
To fix an error on the client, it is enough to redefine window.onerror where all js errors that would have previously floated to the top or passed unnoticed will fall down.
For example, js file loading errors, including the commonplace 404
Answer the question
In order to leave comments, you need to log in
I would like to note that onerror is not supported by all browsers.
By the way, a useful plugin on the topic: github.com/Undev/js_exceptions
Do you send the user agent to the server along with the errors? Who are these 10%?
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question