Re: [Page Visibility] Navigate away behavior (was RE: TPAC 2011 Web Performance WG 2011-11-01)

On Tue, Nov 15, 2011 at 10:35 AM, Jatinder Mann <jmann@microsoft.com> wrote:
>>We do need to define ordering of that event with unload/pageshow/pagehide, of course.
>
> Yes, the ordering will need to be clearly defined. On the surface, it seems that the visibilitychange event should fire at the same time as the unload.

I think it'd make sense to fire visibilitychange after
pagehide/unload, but synchronously from the same task. That way pages
that don't want to do unneccesary work in visibilitychange when the
page is getting navigated away from can easily accomplish that.

/ Jonas

Received on Tuesday, 15 November 2011 21:30:21 UTC