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

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

Reply via email to