IT lexicon › Web › Layout Cost

Layout Cost

Web På svenska → Updated: 2026-11-15

The time required for the browser to calculate the geometry of all elements.

Layout cost grows with DOM size and CSS rule complexity. Changes that affect many elements—such as resizing a container that thousands of children depend on—trigger a global relayout. Layout boundaries can isolate changes to a subset of the tree. Forced synchronous layout is a common performance pitfall where JavaScript forces the browser to recalculate layout immediately instead of batching.

← Back to the lexicon