The Web, Actually

Lesson 4 · globe The Web, Actually

How the Browser Renders

Explain why a script tag in the wrong place freezes a page.

Before you start

The browser parses HTML top to bottom, building the DOM. A plain <script> stops that parse until the script downloads and runs. defer and async are how you get out of the way. Understanding this one pipeline explains most first-paint problems you'll ever debug.

5 exercises·up to 74 XP·5/5 hearts