All challenges
Multiple ChoiceHard 30s

requestAnimationFrame Queue

Choose the best answer for: rAF timing
Options
  1. 1rAF runs immediately when it is registered during the frame
  2. 2rAF runs in the microtask queue before pending promise callbacks
  3. 3rAF callbacks run before the next repaint (in the animation frame)
  4. 4rAF is a macrotask scheduled after timers in the event loop turn

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle