node-source-map-support icon indicating copy to clipboard operation
node-source-map-support copied to clipboard

Synchronous XHR warning

Open danvk opened this issue 10 years ago • 4 comments

When I source browser-source-map-support.js in Chrome 42, I get the following warning in the JS console:

Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

danvk avatar Apr 17 '15 15:04 danvk

Yup, this sucks. Logged a bug against the spec: https://www.w3.org/Bugs/Public/show_bug.cgi?id=28505. We'll see how it goes.

evanw avatar Apr 17 '15 16:04 evanw

I was hoping to use this with Zombie headless browser but that doesn't support synchronous XMLHttpRequests: https://github.com/assaf/zombie/issues/417

sjungwirth avatar Nov 03 '15 01:11 sjungwirth

This should be easy to fix - https://github.com/evanw/node-source-map-support/blob/master/source-map-support.js#L99

Either have an install and an installAsync - or the inverse to be more like Node (but more of a compatibility break)

dominictobias avatar Jan 29 '16 14:01 dominictobias

@DominicTobias Were you able to get a fix working?

wbt avatar Apr 16 '20 20:04 wbt