W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2015

Re: do not deprecate synchronous XMLHttpRequest

From: Florian Bösch <pyalot@gmail.com>
Date: Fri, 6 Feb 2015 19:50:11 +0100
Message-ID: <CAOK8ODircyC0MuD8ofaav_LiKpZvnKXdVbPwOpZQzbGSaHO7zg@mail.gmail.com>
To: Michaela Merz <michaela.merz@hermetos.com>
Cc: Marc Fawzi <marc.fawzi@gmail.com>, Gregg Tracton <tracton@gmail.com>, Webapps WG <public-webapps@w3.org>
On Fri, Feb 6, 2015 at 7:38 PM, Michaela Merz <michaela.merz@hermetos.com>

>  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
Received on Friday, 6 February 2015 18:50:38 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:14:43 UTC