The answer
The browser needs CSS to know how elements should be styled before it can safely paint the page.
The browser needs CSS to know how elements should be styled before it can safely paint the page.
It parses HTML into the DOM, parses CSS into the CSSOM, runs scripts, computes layout, and then paints the page.
Synchronous scripts block HTML parsing and can delay DOM construction, which delays the rest of the rendering pipeline.
Layout calculates element size and position. Paint draws the visual output after layout is known.
Browse all our FAQs or reach out to our support team
Your learning library
Find your next course. Build something great.