Charts · 11
How a URL becomes a page
Between pressing return and seeing a page there is a name to resolve, a connection to open, keys to agree, a request to make, and only then the document, its stylesheet, its script, and the paint. Each step is a bar on one time axis, its length computed from the round-trip time you pick. On a slow link the waiting dwarfs the work; on a cheap phone the JavaScript dwarfs the waiting. This is the network sibling of the keypress chart.
First paint at 403 ms, usable at 806 ms. Before the first byte of HTML arrives: 260 ms, all of it waiting.
- DNS lookup50
- TCP handshake50
- TLS 1.3 handshake50
- Request to first byte110
- HTML download (40 KB)16
- CSS (80 KB)82
- JavaScript (400 KB)210
- Style, layout, first paint45
- Parse, compile, run JavaScript320
Hover a bar
Bars start where their step starts and run for as long as it takes, on one time axis. Change the network and watch the connect steps stretch; change the device and watch the JavaScript bar stretch instead.