Re: do not deprecate synchronous XMLHttpRequest

On Fri, Feb 6, 2015 at 7:38 PM, Michaela Merz <michaela.merz@hermetos.com>
wrote:

>  it would be the job of the browser development community to find a way
> to make such calls less harmful.
>
If there was a way to make synchronous calls less harmful, it'd have been
implemented a long time ago. There isn't.

You could service synchronous semantics with co-routine based schedulers.
It wouldn't block the main thread, but there'd still be nothing going on
while your single-threaded code waits for the XHR to complete, and so it's
still bad UX. Solving the bad UX would require you to deal with the
scheduler (spawn microthreads that do other things so it's not bad UX).
Regardless, ES-discuss isn't fond of co-routines, so that's not gonna
happen.

Received on Friday, 6 February 2015 18:50:38 UTC