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

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

From: Robert O'Callahan <robert@ocallahan.org>
Date: Wed, 21 Oct 2009 16:16:56 +1300
Message-ID: <11e306600910202016i65df1ed1wc9aa0dc545661e65@mail.gmail.com>
To: Brian Kardell <bkardell@gmail.com>
Cc: Maciej Stachowiak <mjs@apple.com>, "Ennals, Robert" <robert.ennals@intel.com>, Jonas Sicking <jonas@sicking.cc>, "public-webapps@w3.org" <public-webapps@w3.org>
On Wed, Oct 21, 2009 at 3:57 PM, Brian Kardell <bkardell@gmail.com> wrote:

> Is it really the visibility of the page that is being queried - or the
> some kind of state of a window?  Maybe it's a silly bit of semantics,
> but it seems clearer to me that most of the things discussed here are
> about a whole window/tab being "minimized" (either to a taskbar or tab
> or something).  If I have one app open and it is covering a browser
> window - the browser window is not visible (it's lower in the stacking
> order).  Likewise, a page is generally "partially" visible
> (scrollbars) so that seems more confusing than it needs to be too.
>

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.

Rob
-- 
"He was pierced for our transgressions, he was crushed for our iniquities;
the punishment that brought us peace was upon him, and by his wounds we are
healed. We all, like sheep, have gone astray, each of us has turned to his
own way; and the LORD has laid on him the iniquity of us all." [Isaiah
53:5-6]
Received on Wednesday, 21 October 2009 03:17:30 GMT

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