Measuring performance · mid
Chrome DevTools Performance panel and Lighthouse
To debug a slow page you record it in the DevTools Performance panel with CPU and network throttling, read the main-thread flame chart for long tasks, layout and paint, and use Lighthouse for a repeatable lab audit with insights.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceThe notes
What you must know
- Always throttle: a laptop is 4x to 20x faster than a mid-range Android phone. Use CPU throttling (4x or 6x) and a slow network preset, or test on a real device with remote debugging.
- The Performance panel shows live LCP, INP and CLS for your own interactions, and a recording shows: the Network track, the Main thread flame chart, Frames, Layout Shifts, and the Interactions track.
- In the flame chart, a red corner marks a long task (over 50 ms). Click the bottom-up / call tree to find which function took the time. Purple = rendering (style, layout), green = paint.
- The insights sidebar names the problem for you: LCP phases, render-blocking requests, layout-shift culprits, forced reflow, third parties.
- Lighthouse 13 (Oct 2025, in Chrome 143) replaced many old audits with the same 'insight' audits as DevTools. The score still comes from metrics: TBT 30%, LCP 25%, CLS 25%, FCP 10%, Speed Index 10%.
- React 19.2 adds Performance Tracks to the Chrome Performance panel: a Scheduler track (blocking vs transition work) and a Components track (which components rendered and how long).
- Other panels: Network (waterfall, priority column, initiator), Coverage (unused JS/CSS), Memory (heap snapshots), Application > Back/forward cache (bfcache test).
The red pen
Common traps: mistake → fix
Mistake: "I profiled on my MacBook without throttling"
Fix: results are far too optimistic; throttle the CPU or use a real low-end phone.
Mistake: "The Lighthouse score is the goal"
Fix: the score is a lab summary; fix the metric and the cause, then confirm in field data.
Mistake: "INP is in the Lighthouse score"
Fix: Lighthouse navigation mode has no interactions; it scores TBT instead. Use timespan mode or field data for INP.
Easy to hard
Questions interviewers ask, easy to hard
- Which DevTools features do you use for performance debugging? Name them.
- How do you find which function caused a long task in a recording?
- What does Lighthouse actually measure and how is the score made?
- Walk me through how you would profile a slow click on a product filter on a mid-range Android phone.
Explain it out loud
Explain it out loud to an AI interviewer that follows up, and see where your answer is thin.
Practise by voiceYour first interview is free
Sign up and start with a 15-minute interview with the full report, and an English conversation. No card needed.