Closed leidegre closed 3 years ago
We use trace kit (https://github.com/csnover/TraceKit, which we help maintain) which is causing this message.
https://github.com/csnover/TraceKit/blob/master/tracekit.js#L401
This library supports everything back to IE6. Perhaps we need to look into a better way to lookup the source method or disable this functionality behind a flag (it's trying to look up the source so it can get line numbers).
I'm not sure what all we could do except for updating this library. The problem is, this library doesn't support promises because it has to work in every browser so it's always going to be a sync request. I wonder what would be best here. If there is a way to do this with a different api. Is there any chance you could look into this?
Absolutely, I'll keep this open and look at it from time to time. I don't have a window right now but I'll get back to it.
How can i make Synchronous XMLHttpRequest? I need make my call sync. Are there alternatives? It was deprecated in XMLHttpRequest. Thanks!
I'm not aware of any, I know there are warnings currently about it being deprecated.
We just merged in our 2.0 rewrite and I'll be updating the readme and then cutting a release. Is there any chance you could try out the 2.0.0-beta when we tag it. We've made fetch the default implementation and also implemented source maps.
Got some more information regarding the origin of that Synchronous XMLHttpRequest. Throughout we could use this as a place to discuss and troubleshoot further.