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

Re: [RequestAnimationFrame] Processing model defined

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Thu, 28 Jul 2011 02:15:05 -0400
Message-ID: <4E30FE69.9060008@mit.edu>
To: James Robinson <jamesr@google.com>
CC: public-web-perf@w3.org
On 7/28/11 1:54 AM, James Robinson wrote:
>     Maybe we should attack the problem from that angle?  Have a way when
>     making a requestAnimationFrame call to specify when that animation
>     should be considered "done" if the page wants, have jQuery update to
>     do that, and then use that information to either do a single tick
>     past the done time or drop the callback on the floor entirely once
>     the done time passes?
>
> How's that different from setTimeout() + canceling the request?

Depending on what we do with the animation, it might not be different, 
or it might involve one less call into page JS.

But yes, maybe all jQuery needs here is a way to cancel outstanding 
animate() requests.  I really suggest that this group get in touch with 
the jQuery developers and talk to the about what they need out of this API.

-Boris
Received on Thursday, 28 July 2011 06:15:33 UTC

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