W3C home > Mailing lists > Public > public-webapps@w3.org > January to March 2011

Re: Proposal for a page visibility API

From: Robert O'Callahan <robert@ocallahan.org>
Date: Mon, 24 Jan 2011 17:57:38 +1300
Message-ID: <AANLkTikv37fSVj1x=hF_7er1-HvqxZUksw86HmH_qwqH@mail.gmail.com>
To: Drew Wilson <atwilson@google.com>
Cc: Alex Komoroske <komoroske@chromium.org>, Boris Zbarsky <bzbarsky@mit.edu>, public-webapps@w3.org
On Fri, Jan 21, 2011 at 10:24 AM, Drew Wilson <atwilson@google.com> wrote:

> I wanted to point out that many of these use cases are covered adequately
> by document.focus()/document.blur(), which is what we currently use in Gmail
> to decide whether to mark the user as away, decide whether to display
> notifications, etc. In fact, I think the only two use cases that aren't
> already covered by the focus/blur notifications are:
>
> * Page wants to detect prerendering
> * Web app wants to stop updating when it's not visible.
>

The latter set of use-cases are covered by the requestAnimationFrame API (in
various versions, previously discussed on this list), which has particular
advantages for those use-cases.

So this proposal seems mainly useful for prerendering.

Rob
-- 
"Now the Bereans were of more noble character than the Thessalonians, for
they received the message with great eagerness and examined the Scriptures
every day to see if what Paul said was true." [Acts 17:11]
Received on Monday, 24 January 2011 04:58:10 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 18:49:43 GMT