You run a page through PageSpeed Insights and it comes back orange or red on mobile, with a long list of recommendations that all sound important. Where do you start? Some fixes move the score by twenty points; others barely register. Knowing how the score is built tells you which ones to do first.
This guide explains where the Lighthouse performance score comes from, what each of the five lab metrics measures, how to run the test and read the results, and the fixes that usually give the biggest improvement for the least effort.
Where the score comes from
Lighthouse loads your page once in a controlled environment and records five metrics. Each metric is converted to a 0-100 sub-score on a curve based on real-world data, and the performance score is a weighted average of those sub-scores. In current Lighthouse versions the weights are:
| Metric | Measures | Weight |
|---|---|---|
| Total Blocking Time (TBT) | How long the main thread was blocked by long tasks between first paint and interactivity | 30% |
| Largest Contentful Paint (LCP) | When the largest image or text block became visible | 25% |
| Cumulative Layout Shift (CLS) | How much visible content moved unexpectedly | 25% |
| First Contentful Paint (FCP) | When the first text or image appeared | 10% |
| Speed Index (SI) | How quickly the visible area filled in overall | 10% |
Weights can change between Lighthouse releases, so check Google's Lighthouse documentation if precision matters. The colour bands are stable: 0-49 is poor (red), 50-89 needs improvement (orange) and 90-100 is good (green).
The practical conclusion: TBT, LCP and CLS make up about 80% of the score. Work on those first.
Why mobile scores are lower
The mobile test simulates a mid-range phone with a throttled CPU on a slow 4G connection. JavaScript that runs in 200 ms on your laptop can take several times longer there, which is why the same page often scores 95 on desktop and 50 on mobile.
Run a page speed test
The Page Speed Test runs Lighthouse through Google's official PageSpeed Insights API, so your own connection does not affect the result.
- Enter the full address in Page URL, for example
https://example.com/pricing. - Choose mobile or desktop. Start with mobile; Google primarily uses the mobile version of pages.
- Press Test speed and wait 20-60 seconds while Lighthouse loads the page.
- Read the Performance score and the FCP, LCP, TBT, CLS and SI tiles. Each tile is coloured good, needs improvement or poor.
- Open items under Opportunities & insights, which are sorted by estimated savings, and Diagnostics to see the explanation and the files or elements involved.
- Look at the Final render screenshot to see what Lighthouse saw; a cookie banner covering the page or a blank screen explains a lot.
If you see a quota error, click Use your own Google API key and paste a free key from Google's PageSpeed Insights documentation. It is stored only in your browser. Switching between mobile and desktop re-runs the test, and results are cached for 10 minutes.
Fixes that move the score most
Reduce Total Blocking Time
TBT is driven by JavaScript. Every task on the main thread longer than 50 ms counts as blocking beyond that threshold.
- Remove scripts you do not need: old analytics tags, unused plugins, chat widgets on pages where nobody chats.
- Defer non-critical JavaScript with
deferor load it after interaction. - Load third-party scripts late or on user action (for example, load a video embed only when the play button is clicked).
- Split large bundles so each page only loads the code it uses. The "Reduce unused JavaScript" opportunity lists the worst offenders.
- Minify what remains. The JS Minifier helps for standalone files.
Improve Largest Contentful Paint
LCP is usually a hero image or a large heading.
- Make the LCP image small: correct dimensions and a modern format. Resize with the Image Resizer and reduce file size with the Image Compressor.
- Do not lazy-load the LCP image. Lazy loading is for images below the fold. Adding
fetchpriority="high"to the hero image helps the browser prioritise it. - Remove render-blocking CSS and fonts in the
<head>, or inline the small amount of CSS needed for the first screen. - Speed up the server: caching, a CDN and fewer redirects all reduce the time before anything can start.
Fix Cumulative Layout Shift
- Give every image and video
widthandheightattributes (or a CSSaspect-ratio) so space is reserved. - Reserve space for ads, embeds and banners instead of letting them push content down.
- Avoid inserting content above existing content after load, except in response to a user action.
- Use
font-displayand matched fallback fonts to limit text jumping when web fonts load.
The smaller wins
FCP and Speed Index mostly improve as a side effect of the above: less blocking CSS, faster server response and lighter pages. Minifying stylesheets with the CSS Minifier and enabling text compression on the server are quick extras.
Other ways to test
- pagespeed.web.dev, Google's own site, shows the same Lighthouse data and adds real-user data when available.
- Chrome DevTools, Lighthouse panel: runs locally, so it can test localhost, staging behind a login and pages on your intranet, which a server-based test cannot. Results depend on your machine, so compare runs on the same device.
- Lighthouse CLI or CI integrations: useful for catching regressions automatically before each release.
- Browser DevTools Performance panel: records a detailed timeline when you need to find exactly which function causes a long task.
Lab score versus real users
The Lighthouse score is a lab measurement: one load, one simulated device. Google's ranking systems use real-user Core Web Vitals from Chrome visitors instead. A page can score 60 in the lab and still pass Core Web Vitals, or the other way round. Check your real-user data with the Core Web Vitals Checker, and read the background in Core Web Vitals explained.
Troubleshooting
The score changes every run
Server response times, ads and third-party scripts vary. Differences of a few points are normal; run three tests and compare the median.
Google did not return performance data
The page may block Google's servers, require a login, redirect endlessly or take too long to load. Make sure the URL is public and opens in a private browser window.
The screenshot shows a consent banner
Lighthouse visits as a new user with no cookies. A banner that covers the page may itself become the LCP element; making it smaller or less intrusive can help.
Frequently asked questions
Do I need a score of 100?
No. A score in the green band is excellent, and rankings use real-user Core Web Vitals, not the lab score. Chasing the last few points rarely pays off.
Why is my desktop score much higher than mobile?
The mobile test throttles the CPU and network to simulate a mid-range phone. Heavy JavaScript and large images hurt much more under those conditions.
Can I test a page on localhost or behind a login?
Not with this tool, because Google's servers must load the page. Use the Lighthouse panel in Chrome DevTools for local or private pages.
Which single fix helps most on a typical site?
On many sites it is reducing third-party JavaScript, because it cuts Total Blocking Time, the most heavily weighted metric. Check the top items in Opportunities for your page's specific answer.
Does the tool store my URLs?
The URL is sent to Google's PageSpeed Insights API to run the test. Results are kept briefly in your browser so switching tools does not re-run the same test.