Promises, async functions, and requestAnimationFrame, together.

Boris Zbarsky bzbarsky at
Sat Apr 23 13:28:31 UTC 2016

On 4/23/16 4:09 AM, Salvador de la Puente González wrote:
> AFAIK, that should execute `drawSomething()` once per frame. Given a
> frame is each time the animatinFrame() promise resolves.

What's not obvious to me is whether it will execute it before the actual 
paint for the frame (i.e. before or right after the loop that's 
notifying the animation frame callbacks completes) or whether it will do 
drawSomething() after the paint...


More information about the es-discuss mailing list