Re: requestAnimationFrame

On 11/15/10 7:45 PM, Gregg Tavares (wrk) wrote:
> Does it matter? What happens now? Now, with setInterval there is no
> connection to rendering. I set the code to update one element to have an
> interval of 16 and another to have an interval of 100. If the first one
> makes the second one visible that doesn't effect whether or not the
> second one's set interval function gets called. If there was a
> setIntervalIfVisible and that behavior was browser independent how would
> that make things worse than they are today?

Well... we're trying to make things _better_, not "no worse".

> I'm not trying to be argumentative. I'm just not seeing the issue.
> Certainly I'd like various areas to be updated together, or in sync

Yes, that was one of the two main motivations for 
mozRequestAnimationFrame.  Apart from the throttling (which is easy), 
this is by far the most important thing with the API.


Received on Tuesday, 16 November 2010 02:26:39 UTC