VSync
The signal a display sends when it is ready to show a new frame, which the browser uses to time its rendering.
In more detail
Short for vertical synchronisation. requestAnimationFrame callbacks run just before the frame for the next VSync, so updates line up with the screen instead of tearing or stuttering.
Related terms
- refresh rate — How many times per second a display draws a new image, measured in hertz; 60 Hz means 60 times a second.
- requestAnimationFrame() — A function that schedules a callback to run just before the browser's next repaint, the right place to update animations.
Taught in
- requestAnimationFrame vs requestIdleCallback: High-FPS Work — Frontend Architecture & Web Platform