The third step of viewing a web page in the standard explainer video is rendering — the browser turning the downloaded HTML and CSS into pixels on your screen. It follows two earlier stages, DNS lookup and the HTTP request/response, and it only begins once the browser holds enough of the page's code to start building the visual tree.
That word "enough" matters. The video usually glosses over the fact that rendering starts before the whole page finishes downloading, which is why you sometimes see a half-styled page flash on screen. Understanding that timing is the difference between memorizing three steps and actually knowing what your browser does.
Where Rendering Sits in the Three-Step Sequence
The video frames page loading as three moves: find the server, fetch the files, then draw the page. Rendering is step three, and it's the only one that happens entirely inside your machine rather than across the network.
DNS resolution comes first. Your browser asks a resolver to translate a domain name into an IP address, a round trip that typically costs a few milliseconds to a few hundred depending on cache state. Then the HTTP request goes out and the response streams back — headers, status code, and body.
The third step takes that body and converts it. In the video, this is usually shown as a simple "browser displays the page" beat, often with an arrow pointing at the screen. The real sequence underneath is longer: parse, build, layout, paint. Keep that in mind whenever a tutorial compresses rendering into a single sentence.
One practical consequence: if the video's example page fails to render correctly, the problem is rarely the network. You can confirm this by checking that the status code was 200 and the byte count looks right in the Network panel of Chrome DevTools, which ships free with every Chrome install. If both hold, the fault sits in step three.
Parsing HTML Into the DOM Tree
Rendering opens with parsing. The browser's HTML parser reads the document as a byte stream and converts tags into a tree of nodes called the DOM — the Document Object Model. Every element in your markup becomes a branch or leaf in that structure.
This is not a one-pass read. The parser handles malformed markup by guessing, which is why a missing closing tag rarely breaks a page outright. It also pauses when it hits a synchronous tag, because that script might rewrite the document mid-parse. That pause is a genuine performance cost, and it's the reason modern guidance pushes scripts to the end of the body or adds defer.
The parser builds the DOM incrementally. You can watch it happen in DevTools by opening the Elements panel during a slow load — nodes appear in waves rather than all at once. Over a typical broadband connection, a 100 KB HTML document usually parses in well under 50 milliseconds, so most of the visible delay comes from elsewhere.
Edge case worth knowing: if the server sends a Content-Type header that disagrees with the actual file, the parser may treat HTML as plain text and render nothing but a wall of code. That failure looks like a blank or garbled page and is a step-three problem, not a connection problem.
Building the CSSOM and the Render Tree
While the DOM is forming, the browser parses stylesheets into a second structure, the CSSOM. Together the DOM and CSSOM feed a third tree — the render tree — which contains only the nodes that will actually be painted, each paired with its computed styles.
Elements with display: none never enter the render tree at all. That's a meaningful distinction the video almost never draws: hiding something with display: none removes it from layout entirely, while visibility: hidden keeps its space reserved. Both look "invisible" to a user, but they cost different amounts of work.
Stylesheets are render-blocking by default. If a sits in the head, the browser will not paint the page until that file arrives and parses. A 200 KB stylesheet on a slow mobile connection can therefore delay first paint by a second or more even though the HTML arrived instantly.
Cascade order decides which rule wins when two declarations collide. Specificity, source order, and !important all participate, and a single misplaced rule near the top of a large stylesheet can quietly override everything below it. When a page renders with the wrong colors or spacing, this is where to look first.
Layout: Calculating Every Box on the Page
Layout, sometimes called reflow, takes the render tree and computes the exact geometry of every box — width, height, and position relative to its container. The browser works through the tree and resolves percentages, flex distributions, grid placements, and margins into concrete pixel values.
This stage is where the cascade of dependencies shows up. A change to one element's width can ripple through its siblings and ancestors, forcing the browser to recompute a large subtree. Google's own web performance guidance has long warned that layout is one of the more expensive operations in the pipeline, which is why animating properties like width and top feels jankier than animating transform or opacity.
Viewport size drives everything here. The same markup laid out at 1440 pixels wide and at 390 pixels wide produces entirely different geometry, and that's the mechanical reason responsive design works at all. Media queries don't change the HTML; they change which layout rules apply.
A concrete failure case: images without declared width and height attributes cause layout to run, then re-run when the image loads and its true dimensions arrive. Users see the page jump — the infamous layout shift. Declaring both attributes up front lets the browser reserve space before the image bytes land.
Paint and Composite: Pixels Reach the Screen
Painting fills in the actual pixels for each box — text glyphs, borders, background colors, shadows, images. The browser typically paints in layers rather than as one flat canvas, then a compositor thread stitches those layers together and hands the result to the GPU.
Layer promotion is why a CSS animation on transform can run at a smooth 60 frames per second while an animation on left stutters. Transform and opacity changes can often be handled by the compositor alone, skipping layout and paint entirely. Anything that alters geometry forces the full pipeline again.
On a 60 Hz display, each frame has roughly 16.7 milliseconds of budget. Miss it and the frame drops. That number is arithmetic, not a benchmark — one second divided by 60 — and it's the yardstick Google's RAIL performance model uses when it talks about keeping work under 10 milliseconds per frame for responsiveness.
The first moment pixels actually appear is called First Contentful Paint. On a well-optimized page over cable broadband it often lands between 0.8 and 1.8 seconds, though Google's own thresholds classify anything past 1.8 seconds as needing improvement. That figure varies enormously by connection and device, so treat any single number as a snapshot rather than a rule.
The Critical Rendering Path in Order
The full step-three sequence, in the order the browser executes it, looks like this:
1: Receive HTML bytes and parse them into DOM nodes. 2: Encounter stylesheet links and fetch plus parse them into the CSSOM. 3: Combine DOM and CSSOM into the render tree, excluding non-painted nodes. 4: Run layout to compute the geometry of every visible box. 5: Paint layers with colors, text, and images. 6: Composite those layers and hand the frame to the GPU for display.
Steps two through four are what performance engineers call the critical rendering path. Anything that lengthens them delays the first pixel. The video's single "display" beat hides six distinct operations, and knowing which one is slow changes how you fix a page.
If the page renders unstyled, a stylesheet failed to load — check the Network panel for a 404 or a blocked request. If it renders but everything overlaps, layout ran with wrong geometry, often from a missing dimension. If it renders correctly but scrolls roughly, paint and composite are the suspects, frequently from an over-large image or a costly box-shadow.
How This Step Differs From DNS and the HTTP Request
The first two steps are network-bound; the third is CPU- and GPU-bound. That split determines what kind of fix helps. A slow DNS lookup or a sluggish server response is cured by better hosting or caching. A slow render is cured by lighter code.
DNS resolution usually costs between 20 and 120 milliseconds on a first visit and near zero afterward, because the operating system and browser cache the answer. The HTTP request adds the server's think time plus the transfer. Neither of those involves your processor drawing anything.
Rendering, by contrast, scales with the complexity of your markup and styles. A page with 5,000 DOM nodes and heavy CSS will render slowly on a mid-range phone even on a fast connection. The bottleneck moved from the wire to the device.
That's why the same page can feel instant on a desktop and sluggish on a phone. The network step is similar on both; step three is not. When someone reports "the site is slow" but the server logs show fast responses, the complaint is almost always about rendering.
Common Failure Cases and What They Look Like
Failure cases in rendering rarely announce themselves. They show up as flashes, jumps, and blank patches, and each maps to a specific stage.
A flash of unstyled content happens when HTML paints before the CSSOM is ready — usually because a stylesheet sits low in the document or loads from a slow origin. The fix is placing critical CSS inline in the head and deferring the rest.
Invisible content is the opposite problem: a render-blocking stylesheet that never resolves leaves the page blank indefinitely. Browsers have timeouts, but a stalled third-party font or analytics stylesheet can hold the paint for seconds. Test by disabling that request in DevTools and reloading.
Cumulative layout shift is the jumpy-page failure described earlier, measured by Google as part of its Core Web Vitals. A score above 0.25 is classed as poor. Reserving space for images, ads, and embeds is the direct remedy.
The fourth case is a blank page with a correct 200 status and full byte count. That usually means a JavaScript error halted execution before the content mounted, which matters for single-page apps where rendering depends on script rather than markup. Check the Console panel first.
Why the Video Compresses This Step — and What to Do About It
Explainers compress rendering because it's invisible. DNS and HTTP at least have a visible request and response; rendering happens inside the machine with nothing to show. A single arrow to the screen is easier to animate than six pipeline stages.
The compression costs viewers real diagnostic ability. Someone who thinks step three is just "the browser shows the page" has no framework for why a page flashes, jumps, or stalls. Someone who knows the parse-layout-paint sequence can name the fault in seconds.
If you're using the video to learn, pause at the rendering beat and mentally expand it into the six operations above. Then open DevTools on any real site and watch the Performance panel record a load. The colored bars — parsing, layout, paint — are the compressed step made visible.
For anyone teaching this material, the useful addition is one sentence: rendering begins before the download ends. That single fact explains progressive loading, flash of unstyled content, and layout shift all at once, and it costs almost nothing to include.
FAQ
Does rendering wait for the entire page to download?
No — rendering starts as soon as the parser has enough HTML and the blocking stylesheets have arrived. That's why pages appear in stages rather than all at once. The remaining bytes keep streaming while the browser lays out and paints what it already has. Streaming responses make this overlap especially visible.
Is the third step the same as "the browser displays the page"?
Roughly, but the display is the end result of six operations: parse HTML, parse CSS, build the render tree, lay out boxes, paint layers, and composite. Collapsing them hides which one failed. A page that renders unstyled and a page that renders blank are both "display problems" with completely different causes.
What's the difference between the DOM and the render tree?
The DOM contains every element in the markup, including hidden ones. The render tree contains only nodes that will be painted, each with its computed style attached. An element styled with display: none exists in the DOM but never enters the render tree, so it takes up no layout space at all.
Why does a page sometimes flash unstyled content before settling?
The HTML painted before the stylesheet finished loading and parsing. Browsers block rendering on stylesheets in the head, but a stylesheet placed late, loaded from a slow third-party origin, or injected by script can let a first paint slip through. Inlining critical CSS in the head prevents the flash.
How long should rendering take on a normal page?
On a mid-range phone over a decent connection, parsing and layout for a typical page usually complete in well under 200 milliseconds, with first contentful paint often landing between one and two seconds. Heavy DOM size or large stylesheets push those numbers up. Measure with the Performance panel rather than trusting a general figure.
Does adding more CSS make rendering slower?
It can, because every stylesheet must be downloaded, parsed, and matched against the DOM. Unused rules still cost parse time even if they never apply. Splitting CSS so each page loads only what it uses is the standard remedy, and it helps most on mobile connections.
What happens if a stylesheet fails to load entirely?
The browser renders the HTML with no styles applied — plain text, default fonts, unstyled links. It doesn't retry indefinitely. Check the Network panel for a 404 status or a blocked request, and confirm the file path and server permissions. A single wrong path in a link tag produces exactly this result.