Re: "Officially" deprecating main-thread synchronous XHR?

On 02/07/2014 07:32 PM, Scott González wrote:
> What about developers who are sending requests as the page is unloading? My understanding is that sync requests are required. Is this not the case?

We need sendBeacon asap, and browsers could start warn first when sync XHR is used outside unload event listeners.




>
> On Friday, February 7, 2014, Anne van Kesteren <annevk@annevk.nl <mailto:annevk@annevk.nl>> wrote:
>
>     On Fri, Feb 7, 2014 at 6:18 PM, Jonas Sicking <jonas@sicking.cc> wrote:
>      > Agreed. I think for this to be effective we need to get multiple browser
>      > vendors being willing to add such a warning. We would also need to add text
>      > to the various versions of the spec (whatwg and w3c).
>
>     For what it's worth, was done when Olli brought this up in #whatwg:
>     http://xhr.spec.whatwg.org/#sync-warning
>
>
>     --
>     http://annevankesteren.nl/
>

Received on Friday, 7 February 2014 17:45:27 UTC