The coffee shop page in the Lab scores 49, red. Four fixes later, it scores 100. What shows you where to start are two tools already in your Chrome.
Lighthouse is the first, an audit tool built into Chrome DevTools. It reloads your page under deliberately tough conditions (a mid-range phone on a slow network), then gives you a score from 0 to 100 plus a list of things to fix. The Performance panel, also in DevTools, is a detailed recording of that load, millisecond by millisecond. Think of a check-up at a clinic: Lighthouse is the lab result sheet with the numbers and their normal ranges, and the Performance panel is the ECG recording you open when you want to know why a number is bad.
Running Lighthouse
- Open an Incognito window (
Ctrl+Shift+N, on a MacCmd+Shift+N), then open your page. - Open DevTools (
F12, orCtrl+Shift+I, on a MacCmd+Option+I) and pick the Lighthouse tab. - Choose Mode: Navigation, Device: Mobile, and tick the Performance category.
- Click Analyze page load.
Lighthouse reloads the page with the CPU slowed down 4 times and a network like slow 4G (about 1.6 Mbps, with a 150 ms round trip). The report has four categories: Performance, Accessibility, Best Practices and SEO. The PWA category you may see in old tutorials was removed in Lighthouse 12.
It also runs from the terminal, with the same result:
# Mobile audit, Performance category only, then open the report
npx lighthouse https://example.com --only-categories=performance --view
Reading the score and its five metrics
The Performance score comes in three colours: 90 to 100 green (Good), 50 to 89 orange (Needs Improvement), and 0 to 49 red (Poor). The target is 90 or above.
The score combines five metrics. Each metric is turned into a value from 0 to 100 using data from millions of real websites, then they're averaged with weights:
| Metric | What it measures | Weight | Green when |
|---|---|---|---|
| FCP (First Contentful Paint) | when the first text or image appears | 10% | ≤ 1.8 s |
| Speed Index | how quickly the screen looks filled in | 10% | ≤ 3.4 s |
| LCP (Largest Contentful Paint) | when the largest element on the first screen appears | 25% | ≤ 2.5 s |
| TBT (Total Blocking Time) | total time the main thread was blocked | 30% | ≤ 200 ms |
| CLS (Cumulative Layout Shift) | how far the layout moves around | 25% | ≤ 0.1 |
The main thread is the browser's single lane of work: it runs JavaScript, works out the layout and responds to clicks. A piece of work longer than 50 ms is a long task. TBT adds up the part of each long task beyond 50 ms, between FCP and the moment the page is ready to use. A 420 ms task adds 370 ms, a 40 ms task adds 0.
Here's the coffee shop page from the Lab, audited in Incognito, one fix at a time:
| State | FCP | Speed Index | LCP | TBT | CLS | Score |
|---|---|---|---|---|---|---|
| Start | 2.6 s | 4.2 s | 4.9 s | 770 ms | 0.19 | 49 red |
app.js gets defer and is split |
1.2 s | 3.6 s | 4.9 s | 30 ms | 0.19 | 72 orange |
| Hero from 800 KB to 120 KB | 1.2 s | 1.6 s | 1.5 s | 30 ms | 0.19 | 91 green |
Banner gets width and height |
1.2 s | 1.6 s | 1.5 s | 30 ms | 0 | 100 green |
- Splitting the JavaScript raises the score the most, because TBT has the biggest weight (30%).
- A CLS of 0.19 on its own still holds back 9 points.
The Core Web Vitals today are LCP, INP and CLS. INP (Interaction to Next Paint) needs a real person clicking, while Lighthouse only loads the page without touching anything. So in the lab Lighthouse uses TBT as a stand-in: lots of long tasks means a user's click will likely have to wait in line.
The Performance panel: finding the cause
The score tells you what is bad. The Performance panel shows you why.
- Open the Performance tab. In its settings (the gear icon), set the CPU to 4x slowdown so it behaves like a phone.
- Click Record and reload (the reload icon). The page reloads while it records.
- Read the result from top to bottom:
- Network: when each file starts and finishes downloading. The 800 KB
hero.jpgis the longest bar. - Main: the blocks of work on the main thread. A task over 50 ms gets a red triangle in its corner, and the part beyond 50 ms is striped red. Click a block to see the function and file behind it.
- The FCP and LCP markers on the timeline, plus the Layout shifts track for anything that moved.
- The Insights sidebar sums up the problems, for example the LCP breakdown and the elements that shifted the layout.
- Network: when each file starts and finishes downloading. The 800 KB
If you just open the Performance tab without recording, it shows the LCP, CLS and INP of your own interactions on that page right away.
Why the score moves around
Run Lighthouse three times on the same page without changing anything, and the scores can come out 49, 46, then 52. Lighthouse isn't broken. Each audit is one trial run on your computer, and two things push the result around:
- Browser extensions. Ad blockers, password managers and grammar checkers run their own scripts on the main thread. In the Lab, one extension adds a 300 ms task, so TBT goes up by 250 ms and the fixed page drops from 100 to 94. Incognito mode turns most extensions off, so the result is cleaner and more consistent.
- The state of your computer and network. A heavy tab or a wobbly connection shifts the numbers by a few points.
So: run it in Incognito, repeat it 3 to 5 times, and use the middle value (the median). Of 49, 46 and 52, the median is 49. Also remember that Lighthouse is lab data: one artificial trial. What real users experience (field data) can be different.
⚠️ Audit habits that give a misleading score
- Auditing in a normal window. Extensions add long tasks too, and you end up fixing problems that aren't your page's. Use Incognito.
- Being happy with the Desktop score. Desktop uses a much faster CPU and network, so its score is almost always higher. Most visitors come from phones, so check Mobile.
- Auditing the development server.
npm run devserves code that isn't minified and is full of debugging helpers. Audit the production build, for examplenpm run buildthennpm run preview. - Treating TBT as INP. TBT is only a lab estimate. Real INP comes from users who actually click.
TL;DR: Lighthouse (the Lighthouse tab in DevTools, Mode Navigation, Device Mobile, Analyze page load) gives a Performance score from 0 to 100: 90 and above is green, 50 to 89 orange, below 50 red. The score combines five metrics: FCP 10%, Speed Index 10%, LCP 25%, TBT 30%, CLS 25%. TBT adds up the part of each long task beyond 50 ms and stands in for INP in the lab. The Performance panel (Record and reload) shows the cause: files on the Network track, long tasks with a red triangle on the Main track, the FCP and LCP markers, and layout shifts. Run it in Incognito so extensions stay out, repeat it a few times, and use the median.
⚡ Run Lighthouse
Write:
npx lighthouse https://example.com --only-categories=performance --view
Meaning: In DevTools: the Lighthouse tab, Mode Navigation, Device Mobile, then Analyze page load. Lighthouse reloads the page with the CPU slowed down 4 times and a network like slow 4G.
⚡ The score and its five metrics
Guess first: the Performance score runs from 0 to 100. From what score is it good?
90 and above, green. 50 to 89 is orange, and below 50 is red.
Meaning: The score combines five weighted metrics: FCP 10%, Speed Index 10%, LCP 25%, TBT 30%, CLS 25%. TBT adds up the part of each long task beyond 50 ms, so a 420 ms task adds 370 ms.
⚡ The Performance panel finds the cause
Meaning: The score says what is bad, the Performance panel (Record and reload) shows why: files on the Network track, long tasks with a red triangle on the Main track, and the FCP and LCP markers.
⚡ Audit in Incognito, take the median
Meaning: Extensions add long tasks too, so audit in Incognito. Repeat it 3 to 5 times and use the middle value: of 49, 46 and 52, the median is 49.