W3C home > Mailing lists > Public > public-web-perf@w3.org > February 2012

Re: [Page Visibility] LC issues

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 29 Feb 2012 16:29:02 -0500
Message-ID: <4F4E989E.5000506@mit.edu>
To: Jatinder Mann <jmann@microsoft.com>
CC: "public-web-perf@w3.org" <public-web-perf@w3.org>
On 2/29/12 2:40 PM, Jatinder Mann wrote:
>> The text as written makes the visibility state change happen after unload.  Was that the intent?
>
> My intention is to have the visibilitychange event fire after the pagehide but before the unload. This would be between the current steps 2 and 3 in the HTML5 unload a document processing model - http://dev.w3.org/html5/spec/Overview.html#unloading-documents.

Right, but the current spec text just posts a task at that point; the 
task is processed async.  Presumably you want to not post a task there 
and instead just run the steps in question?

> I had initially misunderstood what you meant by a hook. Yes, inserting a hook between firing the pagehide and unload in the HTML5 spec and anchoring to that hook within Page Visibility spec would be an optimal solution. I will start a thread with the HTML5 editor.

thanks!

-Boris
Received on Wednesday, 29 February 2012 21:29:39 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 29 February 2012 21:29:40 GMT