[whatwg] SQL storage and onunload

Anne van Kesteren annevk at opera.com
Sun Feb 10 04:17:45 PST 2008


On Sat, 09 Feb 2008 22:06:39 +0100, Alexey Proskuryakov <ap at webkit.org>  
wrote:
> On Feb 9, 2008, at 12:58 PM, Anne van Kesteren wrote:
>>> As far as the unload handler question, what are the semantics for XHR?
>>
>> I think the user leaving the page is the same as aborting the download.
>
>    I've seen servers (e.g. Google) use XHR in onunload to track usage  
> statistics. Sounds like a reasonable use case (really, is there a better  
> way?).

How do you determine when you can end the process? It also seems kind of  
icky that the window is already closed (as far as the end user is  
concerned), but that code is still executing on behalf of it. Could be  
that I misunderstood something though.


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>



More information about the whatwg mailing list