frames per second
How many new images a screen shows each second; 60 frames per second is the usual target for smooth motion.
In more detail
FPS stands for frames per second. At 60 FPS each frame has about 16.7 milliseconds, and the browser needs part of that for its own work. If your code takes longer, frames are dropped and the page stutters.
Related terms
- frame budget — The time available to produce one frame, about 16.7 milliseconds at 60 frames per second, shared by your code and the browser's own work.
- refresh rate — How many times per second a display draws a new image, measured in hertz; 60 Hz means 60 times a second.
- jank — Visible stutter or freezing in scrolling or animation, caused when the browser misses frames because work took too long.
- requestAnimationFrame() — A function that schedules a callback to run just before the browser's next repaint, the right place to update animations.
Taught in
- Layout, Reflow, Paint And GPU Compositing Layers — Frontend Architecture & Web Platform
- Modern CSS Animations, Transitions And View Transitions API — Frontend Architecture & Web Platform
- requestAnimationFrame vs requestIdleCallback: High-FPS Work — Frontend Architecture & Web Platform