16ms Budget
A rule of thumb: you have 16 milliseconds per frame to maintain smooth 60 frames-per-second on the web.
A 60 Hz screen refreshes 60 times a second—one frame every 16.67 milliseconds (1000 / 60). If JavaScript, CSS calculations, layout, or painting takes longer, the next frame blocks and users see jank or lag. The 16ms budget is the yardstick for performance optimization: all script execution, rendering, and painting must fit within this window.