Re: [whatwg/xhr] Allow developers to opt-out of sync XHR with feature policy (#178)

Hi @RuudZw  -- thanks for the feedback. I can leave some of this to the spec authors (since https://xhr.spec.whatwg.org/#sync-warning has been in the spec for almost four years now --  see 575999ae), but I would point out a couple of things about this particular proposal:

First, it's a developer opt-out, not a complete removal of synchronous XHR from the platform. If you need it for some reason, and you're happy with the performance, or mitigate any slowdowns through other means, then by all means continue to use it. You wouldn't have to make any changes to your site for this to continue to work.

Second, many people *do* find that synchronous actions slow their pages down, especially in third party content which they don't necessarily control, (and network speeds and conditions vary greatly in different parts of the world; what is fast for some users may be very slow in others, and javascript being single-threaded, a slow synchronous request necessarily pauses all scripts on that page until it completes or times out). This gives those site owners a way to ensure that their site can remain fast, without forcing that change onto the rest of the web.

If you still have concerns about the effects of removing synchronous XHR completely, #20 is a probably a good place to raise them.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/xhr/issues/178#issuecomment-356980990

Received on Thursday, 11 January 2018 16:26:18 UTC