Part III — The Speed · Lesson 5.4
Performance Tools
In one lineRead the waterfall before you read the code — the shape of the chart names the bottleneck.
Where you've seen itA network panel where the hero image doesn't start until three other requests have finished, one after another.
Diagram
WHICH TOOL ANSWERS WHICH QUESTION
"what's slow?" DevTools Network panel → waterfall
"why is the UI frozen?" DevTools Performance → flame chart,
long tasks
"what should I fix?" Lighthouse → prioritised list
"on a real device?" WebPageTest → filmstrip, real
phones, locations
"what's in my bundle?" source-map-explorer → treemap
"is it leaking memory?" DevTools Memory → heap snapshots
"what do users get?" RUM / CrUX → field p75How it works
- Always throttle first — 4× CPU slowdown, Slow 4G. Unthrottled numbers on a dev machine are fiction.
- Start in the Network panel. Find the LCP resource and ask what delayed its start, not its duration.
- Identify chains. A staircase means each request had to wait for the previous one to be discovered — the highest-value fix is usually
preloador parallelisation. - Move to Performance for anything after load: long tasks, layout thrash, excessive re-render.
- Confirm with Lighthouse, then verify on a real device with WebPageTest before claiming a win.
Trade-offs
| Tool | Best for | Blind spot |
|---|---|---|
| DevTools | Deep, interactive debugging | Your machine only |
| Lighthouse | Quick prioritised audit | Simulated throttling variance |
| WebPageTest | Real devices, filmstrips | Slower to iterate |
| Bundle analyzer | What to delete | Nothing about runtime |
Chrome's Coverage tab deserves a mention: it shows unused bytes per file at runtime, which is the fastest way to justify code splitting to a skeptic.
Interview angle
"Walk me through debugging a slow page."
- Throttle, reload, open the waterfall, and find what delays the LCP element's start time.
- Chains and render-blocking resources first; only then look at bundle size and main-thread work in the flame chart.
- Verify on a real mid-tier device, then lock the win in with a CI budget (4.5) so it doesn't regress.
Recap
- Waterfall first: a staircase means a dependency chain, and that's the biggest lever.
- Flame chart for anything after first paint — wide blocks are frozen UI.
- Throttle every measurement, or you're debugging a page your users never see.