Re: [xhr] "Synchronous XMLHttpRequest outside of workers i..." (#59)

> Synchronous means it should not proceed to the next javascript statement until the request is complete, none said that browsers should freeze the UI by launching the request in the main thread...

That's actually required, since e.g. changes in scroll position, clicking, etc. are detectable by JavaScript. There's no way to avoid it. That's why this is such a poorly-designed API.

> Those are synchronous because they block the execution of the script but it does not have "freeze" effects and does not have such "detrimental effects to the end user's experience" (subjective again).

They actually do have such effects. I'd welcome a test case showing otherwise, but I think you'll find that the page cannot be interacted with, scrolled, etc. while these dialogs are up.

---
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/59#issuecomment-195421739

Received on Friday, 11 March 2016 15:45:22 UTC