frame

One screen update; browsers aim for about 60 frames per second, which leaves roughly 16 milliseconds to do each frame work.

In more detail

If JavaScript runs longer than that, the browser skips frames and animations stutter or input lags. requestAnimationFrame runs code just before the next frame.

Example

Keeping React renders short, virtualising long lists and using transitions help keep the frame rate smooth.

Related terms

Taught in

References