scripted steps · no trace
01. How the browser works / Lesson 2 of 4 · beginner · 10 min · 11 steps

Critical rendering path

Why one script tag keeps the whole page white.

1-min Short
DOMfrom the HTMLRENDER TREEwhat will be drawnCSSOMfrom style.css<p><h1><body></head><link><head><html>HTMLtokens, in orderPARSERidleSCREENblank

An agent added a chat widget to the sale page. Now, whenever the widget's server is slow, the whole page stays white, even though the HTML and the CSS have arrived.

IN THIS LESSONStep 1 of 11 · Symptom0:00 / 2:07

Transcript

follows the lesson · 0 of 11 steps

Critical rendering path: the whole lesson in words

Whenever the chat widget's server is slow, the whole sale page stays white.

The one-page cheatsheet for this lesson →

Sources

index.html · agent-writtenhtml
<!doctype html>
<html><head><meta charset="utf-8"><title>Spring sale</title>
<link rel="stylesheet" href="/style.css">
<script src="/widget.js"></script>
</head><body>
<h1>Spring sale</h1>
<p>Everything 20% off this week.</p>
</body></html>
CHEATSHEET

Opens after you lock in your predictions. It states the answers.