jsErrLog icon indicating copy to clipboard operation
jsErrLog copied to clipboard

Add an option to report each error only once on a page

Open alexlehm opened this issue 10 years ago • 2 comments

I have observed a lot of identical reports for a page where I assume some kind of javascript animation is wrong so that it references an undefined object on mouse movement or similar. It would be helpful if the reports already sent are stored and checked so that the same error isn't reported more than once.

alexlehm avatar Mar 06 '14 20:03 alexlehm

those sorts of errors, I'd hope, would be caught before deploying a script into the wild. this is more to catch unexpected errors. adding an array that it compares to match on would be possible though will add to the weight of the script... how many parameters would need to be matched before determining that it's okay to throw away the message?

Offbeatmammal avatar Mar 09 '14 01:03 Offbeatmammal

I think either fl and loc or err and loc could identify repeated errors.

My main reasoning is that some errors can be blacklisted by domain, however some errors may come from scripts not maintained by the page itself (banner services etc) which are relevant, but cause excess requests if the happen more than once e.g. when the user moves the mouse.

alexlehm avatar Mar 17 '14 22:03 alexlehm