layout

The rendering stage in which the browser calculates the exact position and size of every box on the page.

In more detail

Layout, also called reflow, runs after styles are known and before paint. Changing geometry such as width, height or top, or adding elements, makes the browser redo layout, often for large parts of the page, which is expensive.

Example

React keeps DOM changes to a minimum and applies them together in the commit phase.

Related terms

Taught in

References