Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

We now throttle requestAnimationFrame for offscreen iframes

101 views
Skip to first unread message

Seth Fowler

unread,
Apr 21, 2015, 6:33:00 PM4/21/15
to dev-platform
Hi all,

Bug 1145439 has landed, which means that we now throttle requestAnimationFrame
for offscreen iframes.

This should give us significant benefits in terms of CPU and energy usage for
pages with iframes that do animation - think HTML5 ads. One test, on
areweflashyet.com, showed a 50% improvement in CPU usage for both the content
and chrome processes when the iframe is scrolled offscreen, compared to the
same situation without throttling.

This behavior is allowed by the spec, but of course spec compatibility and web
compatibility are two different things. (Not to mention there could be bugs!) If
you notice any odd behavior that could be a result of this change, please file
it and block bug 1145439. Thanks!

- Seth

0 new messages