Browser InternalsDOMCSSOMPerformanceCore Web Vitals

Rendering Pipeline, DOM & CSSOM

Understand how browsers turn raw HTML and CSS into pixels on screen. Master the rendering pipeline to optimize performance, ace interview questions, and build faster web applications.

30 min read12 sections
01

Overview

When you type a URL and hit enter, the browser doesn't just "show" the page. It runs a multi-step rendering pipeline that converts raw HTML and CSS into the pixels you see on screen.

The pipeline starts by parsing HTML into a DOM (Document Object Model) and CSS into a CSSOM (CSS Object Model). These two trees merge into a Render Tree, which the browser uses to calculate layout, paint pixels, and composite layers onto the screen.

Understanding this pipeline is essential for performance optimization. Metrics like FCP (First Contentful Paint) and LCP (Largest Contentful Paint) are directly tied to how efficiently the browser moves through these stages.

Why this matters

Every performance optimization you'll ever make — lazy loading, code splitting, CSS inlining, script deferring — maps back to one or more stages of this pipeline. Know the pipeline, and you'll know exactly where to optimize.

1 / 12