3 ms·
Why can't they do the shim approach while the library loads though? Google Analytics for example lets you push everything you want to record into a plain globa
by seanwilson 6y ago
Why can't they do the shim approach while the library loads though?
Google Analytics for example lets you push everything you want to record into a plain global array called "ga", and when the library loads, everything in the array in processed by the library. This lets you start capturing events without waiting for the library to load.
- the_gipsy 6y agoit's a bit different though, you can't "push" errors somewhere, I guess so many error handlers and interceptors are set that it's not worth to split.
- seanwilson 6y ago> you can't "push" errors somewhere Why? Can't you push the Error object or stack trace into an array to await processing?
- jbob2000 6y agoWhat if the thing that is pushing the error object has an error?