W3C home > Mailing lists > Public > public-webapps@w3.org > October to December 2009

Re: solving the CPU usage issue for non-visible pages

From: Thomas Broyer <t.broyer@gmail.com>
Date: Wed, 21 Oct 2009 10:05:28 +0200
Message-ID: <a9699fd20910210105r666ad945xa9169bb235102faf@mail.gmail.com>
To: robert@ocallahan.org
Cc: "public-webapps@w3.org" <public-webapps@w3.org>
On Wed, Oct 21, 2009 at 5:16 AM, Robert O'Callahan wrote:
> There are lots of reasons why the browser might deduce that the user is not
> paying attention to a document, e.g.
> -- the browser window containing the document is minimized
> -- the tab containing the document is hidden
> -- the document is in an IFRAME and scrolled offscreen
> -- the browser window is buried behind other windows on the desktop
> -- the screen is dimmed for power saving
> -- gaze tracking detects that the user is looking somewhere else
> -- ultrasonic pings detect that the user is not there
> If we need an API beyond just animation, you might as well call it something
> like window.hasAttention so browsers can cover all of those cases.

...which looks a lot like some kind of "idleness", as has been already
proposed/discussed at the WHATWG and then here:
(later revised at
and http://lists.whatwg.org/pipermail/whatwg-whatwg.org/2009-September/022985.html

We could add a new idleState value that'd be set (with an
idleStateChange event) as soon as the window (browsing context)
becomes "inactive".

Thomas Broyer
Received on Wednesday, 21 October 2009 08:06:03 UTC

This archive was generated by hypermail 2.3.1 : Friday, 27 October 2017 07:26:20 UTC