W3C home > Mailing lists > Public > public-web-perf@w3.org > January 2012

Re: [RequestAnimationFrame] requestAnimationFrame use in documents whose containing elements have no CSS box

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Wed, 04 Jan 2012 01:51:27 -0500
Message-ID: <4F03F6EF.5020607@mit.edu>
To: public-web-perf@w3.org
On 1/3/12 8:37 PM, Jatinder Mann wrote:
> Seeing that this API has been designed for visual animations, not sure
> if firing the requestAnimationFrame callbacks on a display:none iframe
> makes sense  can you think of a use case where this would be useful?
> For time based animations, not firing the callbacks when the iframe is
> not visible will have no impact on the animation state when the iframe
> and animation become visible. Of course, frame based animations would be
> different  though, it isnt the recommended pattern for animations.
> Seems like a waste of CPU cycles to fire the callbacks in the
> display:none case. Thoughts?

Frame based animations using requestAnimationFrame are more or less SOL 
already in background tabs or minimized windows or whatnot.  I don't 
think we should be worrying much about them, personally, past strongly 
discouraging them.

Received on Wednesday, 4 January 2012 07:00:06 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:04:32 UTC