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

On Feb 7, 2014, at 9:32 AM, Scott González <scott.gonzalez@gmail.com> 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?

Besides the proposed Beacon API, if you don't need to do a POST then you can use an img element created at unload time - a load initiated this way will generally survive unloading the page.

 - Maciej

> 
> On Friday, February 7, 2014, Anne van Kesteren <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 20:50:58 UTC