A few people were curious about the scheduling of requestAnimationFrame callbacks, so here’s the tl;dr: All rAF callbacks always run in the same or next frame of work Any rAFs queued in your event handlers will be executed in the same frame.
Any rAFs queued in a rAF will be executed in the next frame. …