W3C home > Mailing lists > Public > whatwg@whatwg.org > May 2013

Re: [whatwg] pagehide vs pagevis

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 28 May 2013 15:46:35 -0400
Message-ID: <51A5099B.7010005@mit.edu>
To: whatwg@lists.whatwg.org
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.

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

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:59 UTC