Frontend · interactive
Style, layout, paint and composite
After your code changes the page, the browser redoes some of its work to update the pixels. What you change decides how much. Change the right property and an animation runs smoothly; change the wrong one and it stutters.
el.style.width = '300px'
- JavaScript→
- Style→
- Layout→
- Paint→
- Composite
Work per frame9 ms of a 16.7 ms budget (60 fps)
Fits in one frame.
Size changes move other boxes, so layout runs for the whole affected area, then everything repaints.
What your code changes
Step 1 of 4 · read left to right
In production
Tools and technologies
Browser devtools show exactly which pipeline stages each frame runs.
Not tied to one language — use these names when you search docs or design a system.