jsErrLog
jsErrLog copied to clipboard
Add an option to report each error only once on a page
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.
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?
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.