Re: [whatwg] pagehide vs pagevis

On 5/28/13 2:02 PM, Brady Eidson wrote:
>  If a page receives “pagehide” with persisted set to true, it correctly assumes that it might be revived at a later date with a pageshow event.  These pages do not expect any event dispatch between the pagehide and the pageshow...

This expectation was always wrong: events can be dispatched by script at 
any time to pages in the page cache.

> I didn’t closely follow pagevis when originally discussed (I now wish I had), but is there any motivation for this?

There is some reasonably lengthy discussion about the ordering here in 
the archives at http://lists.w3.org/Archives/Public/public-web-perf/ 
which you may want to read.

-Boris

Received on Tuesday, 28 May 2013 19:47:07 UTC