W3C home > Mailing lists > Public > public-web-perf@w3.org > July 2011

[RequestAnimationFrame] Processing model defined

From: James Robinson <jamesr@google.com>
Date: Tue, 26 Jul 2011 22:23:34 -0700
Message-ID: <CAD73mdJjoKv9vPoV95FWaGp_OHhGDF7TkrKZK3AY52+NWDxFuQ@mail.gmail.com>
To: public-web-perf@w3.org
I've added a formal definition of the requestAnimationFrame processing
model, check it out here:
 I believe this closes issues 1 and 5 and have marked them as such on the w3
issue tracker.  It defers to the page visibility specification's definition
of "hidden" to decide whether or not to surpress callbacks, with the
assumption that the page visibility specification will figure out what the
correct behavior is for things like print media, non-visual user agents, and
the like.

The one point of potential interest or controversy is the expected callback
behavior for background tabs.  The processing model I've specified says that
callbacks do not fire at all when a document is hidden (in the page
visibility sense of "hidden"), which is consistent with what we've
implemented in WebKit and what I understand is Microsoft's preference, but
not consistent with the Firefox behavior.  We've discussed this a few times
on the list before and absent any new data I think that not firing callbacks
is a better default behavior for users since it uses the least CPU for
background content.  We can revisit this if we get any new data, for example
if we find evidence of compatibility issues with suppressing the callbacks

- James
Received on Wednesday, 27 July 2011 05:24:00 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 18:01:08 UTC