Re: [RequestAnimationFrame] Processing model defined

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