Open zxubian opened 4 years ago
Yes, Chrome also swears on Synchronous XMLHttpRequest.
[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check https://xhr.spec.whatwg.org/.
Will passing xhr.open('HEAD', url, true)
fix the issue? It may be worth forking this package...
Yeh, using xhr.open('HEAD', url);
does fix the issue. However it does seem like the synchronous event was used deliberately to avoid popup blockers.
I guess there won't be a choice soon.
https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest/open
From FileSaver.js: