User Agents

Web browsers and everyday web tech, explained

How to Check PageSpeed in Google Chrome with Lighthouse

· 5 min read · Browsers

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Lighthouse is a built-in tool in Google Chrome that audits a webpage's performance, accessibility, SEO, and best practices. Running it gives you a score (0–100) along with specific, actionable recommendations to make your site faster. You need nothing extra—just Chrome and the page you want to test. This guide walks you through the entire process, from opening DevTools to understanding the results.

What You'll Need

  • Google Chrome (any recent version, desktop or Android)
  • The URL of the page you want to test (must be publicly accessible, or on your localhost)
  • An internet connection (for loading the page and any external resources)

Step-by-Step

  1. Open the page in Chrome. Navigate to the URL you want to test. Make sure the page loads fully before you start the audit.
  2. Open Chrome DevTools. Right-click anywhere on the page and select Inspect, or press Ctrl+Shift+I (Windows/Linux) or Cmd+Option+I (Mac). The DevTools panel opens.
  3. Go to the Lighthouse tab. In the DevTools panel, look for the tab labeled Lighthouse (it has a lighthouse icon). If you don't see it, click the >> arrow to reveal more tabs.
  4. Choose your audit settings. In the Lighthouse tab, you'll see:
    • Mode: Select Navigation (the default) to test the page as a user would load it. Other options include Timespan (for interactions) and Snapshot (for the current state).
    • Device: Choose Mobile or Desktop. Mobile is the default and often more relevant since it's stricter.
    • Categories: Check all four: Performance, Accessibility, Best Practices, and SEO. You can uncheck any you don't need.
  5. Click “Analyze page load”. The button is at the top right of the Lighthouse tab. Chrome will reload the page and run the audit. This takes 30–60 seconds. Do not interact with the page or switch tabs during the test.
  6. Wait for the report. When finished, a new tab or a full-screen report appears in DevTools. It shows scores for each category, plus a list of opportunities and diagnostics.
  7. Read the results. The Performance score is the main one for page speed. Scroll down to see:
    • Metrics: First Contentful Paint, Largest Contentful Paint, Total Blocking Time, Cumulative Layout Shift, and Speed Index.
    • Opportunities: Specific suggestions like “Eliminate render-blocking resources” or “Properly size images.”
    • Diagnostics: Additional info like “Avoid enormous network payloads.”
  8. Export or re-run. You can download the report as JSON or HTML using the Export button in the top-right of the report. To re-run with different settings, go back to the Lighthouse tab and change the device or categories.

Common Mistakes

  • Running the audit while logged in or with a populated cart. This skews results. Test on a clean, logged-out version of the page.
  • Not using incognito mode. Browser extensions (ad blockers, password managers) add overhead. Run the audit in a normal window, but disable extensions, or use incognito (though some extensions still run there).
  • Testing on a slow network or with many tabs open. Lighthouse simulates throttling, but your machine's resources affect results. Close other tabs and heavy apps.
  • Ignoring the “Opportunities” section. The score alone doesn't tell you what to fix. The specific suggestions are the actionable part.
  • Running on a page that isn't fully loaded. If the page is still loading images or scripts, the audit may start prematurely. Wait for the spinner to stop.

Tips

  • Test both mobile and desktop. They can score very differently. Mobile is usually the priority, but check both.
  • Use the “Clear storage” option. In the Lighthouse tab, check the box that says Clear storage to simulate a first-time visit (no cached resources).
  • Run the audit at least 3 times. Scores fluctuate due to network and server variance. Take the median score as your baseline.
  • Focus on the “Opportunities” that give the biggest estimated savings. The report shows estimated time savings for each item, so prioritize those.
  • Use the “View Original Trace” feature. In the Performance section, you can click “View Original Trace” to open the Performance tab and see a detailed waterfall of network requests.

Troubleshooting

  • Lighthouse tab is missing. Make sure you're on the latest version of Chrome. If you still don't see it, click the >> arrow in the DevTools tab bar to find it. Alternatively, press Ctrl+Shift+P (or Cmd+Shift+P) and type “Lighthouse” to run it from the command menu.
  • The audit fails with an error like “No usable screenshots.” This often happens if the page doesn't load fully or if there's a network issue. Reload the page and try again. Also, check that the page isn't blocking DevTools (some sites have anti-bot measures).
  • The audit takes too long or hangs. Close other tabs and extensions, then retry. If the page has heavy resources, it may just take longer—wait up to 2 minutes. If it still hangs, try a different URL or a simple page (like example.com) to see if the tool works.
  • Score is 0 or very low. This can happen if the page is extremely slow or if there's a JavaScript error. Check the console (Console tab) for errors, and try a simpler page to verify the tool works.
  • Results differ from other tools (like PageSpeed Insights). PageSpeed Insights uses Lighthouse but runs on Google's servers, not your local machine. Local results can vary due to your network and device. That's normal.

Frequently Asked Questions

Does Lighthouse work on localhost or private pages?

Yes, Lighthouse can test localhost and pages behind basic auth, but you may need to start Chrome with special flags if the server uses self-signed certificates. For most local development, it works fine.

What is a good Lighthouse Performance score?

Generally, 90–100 is considered fast, 50–89 is moderate, and below 50 is slow. But the score is a composite—focus on the specific metrics like Largest Contentful Paint (should be under 2.5 seconds for good UX).

Can I run Lighthouse on a page that requires login?

Yes, but you need to log in first in the same Chrome window, then open DevTools and run the audit. However, the audit will include login state, which may not reflect what new visitors see. Better to test a public version if possible.

Does Lighthouse measure real user speed or simulated speed?

It simulates a mobile device on a slow 4G connection using throttling. It does not measure real user experiences. For real-user data, you'd need tools like Chrome User Experience Report (CrUX) or analytics.

Why does my score change between runs?

Network latency, server response time, and your local machine's performance all vary. Run the audit multiple times and take the median score for a stable baseline.

Can I automate Lighthouse tests?

Yes, Lighthouse can be run from the command line using Node.js (via the Lighthouse npm package) or integrated into CI/CD pipelines. That's more advanced but useful for tracking performance over time.