News for hackers. Stuff that matters.
Re:Robust Client-Side JavaScript (2017) by stephenr on Wednesday June 24, 2020 @03:31PM (#23632775)
I guess it depends what you mean by error logging specifically.

I added a pretty barebones “report js errors to the backend” script in about 1.1k uncompressed/unminified.

It’s possible it doesn’t catch all errors I guess but I can’t imagine what 56K of js just to catch and reports is doing.

Re:Robust Client-Side JavaScript (2017) by stephenr on Wednesday June 24, 2020 @03:38PM (#23632865)
Having read that section you linked now, ours is similar to his “not enough” example.

I’d say probably 99% of the error reports we see from it are a third party js script not loading (Sometimes a network issue, sometimes a plugin blocks them) we’ve pared third party loads down to just the payment gateways, but they’re still the vast majority of reports we see).

However it’s also not js heavy, so that type of error logging solution works well for us.