Improve Your Lighthouse Score

Is your Lighthouse score in the red, your Core Web Vitals poor, and you're not sure where to start? I'll automatically measure your site in real production mode, analyze the results, target and fix the biggest issues, and ensure the changes are integrated into your pipeline. This turns a one-time measurement into a repeatable process. This page serves as the technical foundation for performance optimization.

How to Tell

  • PageSpeed Insights shows red values for LCP, CLS, or Total Blocking Time on mobile devices.
  • The score varies from measurement to measurement, and no one knows which value is correct.
  • With each new release, the site gradually slows down without anyone noticing.
  • There's a long list of tips, but no order that really makes a difference.
  • The agency says, "It's the hosting's fault," while the hosting provider says, "It's the website's fault."

My Approach

1. Automated Measurement

πŸ€–

I build your application in production mode and measure its performance using the Lighthouse CLI in a headless Chromium environment, on both mobile and desktop, running multiple tests per page and calculating the median. The results are available in JSON and HTML formats and can be reproduced at any time.

2. Evaluate and Prioritize

πŸ”¬

Based on the failed audits, I identify the root causes of LCP, CLS, and blocking time and prioritize them by impact and effort. You'll receive a concrete list instead of a report with a hundred suggestions.

3. Targeted Improvement

πŸ”§

Typical optimization techniques include images and fonts, render-blocking, JavaScript bundles, layout shifts, as well as server-side compression and caching. Each change is measured individually and retained only if it is proven to be effective.

4. Secure it for the long term

πŸ›‘οΈ

With Lighthouse CI and thresholds in the pipeline, any deterioration is detected before deployment – not just in the rankings or user data.

Red on PageSpeed? Send me the URL – I can run the first test in no time.

Send URL

Technical Details

Lab and field data: Lighthouse measures performance in a lab under controlled conditions (throttled CPU and network). This is ideal for comparing changes. The field data from the Chrome User Experience Report – which PageSpeed Insights also displays – shows how real visitors experience the page. I use both: lab data for comparison and field data for context.

Never compare against the dev server: Development mode serves up unminified code and additional scripts. That's why I always measure the production build. Even then, there are local pitfalls, such as missing compression, missing cache headers, or a CPU running at full capacity. I also verify such findings against the actual production environment.

Essentially, a measurement run looks like this:

npx lighthouse https://staging.example.com/ \
  --chrome-flags="--headless=new" \
  --output=json --output-path=report --quiet

# Scores und Kennzahlen auslesen
jq '.categories | map_values(.score * 100)' report.report.json
jq '.audits["largest-contentful-paint"].displayValue' report.report.json

Sample Measurement

Before-and-after metrics from an optimization run with three improvement cycles for a Nuxt website. Measured in the production build, on mobile and desktop, with the median value from three runs in each case. The page names have been anonymized.

PageDevicePerformanceAccessibilityLCPCLS
Homemobile45 β†’ 7792 β†’ 967.7 β†’ 4.1 s0,269 β†’ 0,001
HomeDesktop83 β†’ 9891 β†’ 961.6 β†’ 0.9 s0,137 β†’ 0
Subpagemobile44 β†’ 7692 β†’ 968.1 β†’ 4.2 s0,276 β†’ 0,008
SubpageDesktop83 β†’ 9791 β†’ 961.6 β†’ 0.9 s0,138 β†’ 0
Lighthouse, median of three runs, production build

The biggest improvement didn't come from optimizing individual images, but from analyzing the root causes: Uncompressed assets and a Hydration error – which rebuilt and shifted the layout retroactively – accounted for most of the poor performance. A change that had no measurable effect was discarded.

Technologies

Lighthouse CLI, Lighthouse CI, Unlighthouse, PageSpeed Insights, Chrome DevTools, Nuxt, Vue.js, Node.js, Docker, GitHub Actions.

How You Benefit

  • Measurable results: Before-and-after metrics per page and device.
  • Clear Priorities: Actions are sorted by impact and effort.
  • Reproducibility: Each measurement run can be repeated with a single command.
  • Protection against relapses: Thresholds in the pipeline prevent values from dropping again unnoticed.

Frequently asked questions

Do you guarantee a score of 100?

No. The results you can achieve depend on your starting point, the technology used, and third-party scripts, so I don't make any promises about specific numbers. However, you'll be able to see what has changed before and after.

Why does the score fluctuate?

Lighthouse performs measurements under simulated conditions, and the load on the computer, the network, and third-party scripts can affect the results. That's why I take multiple measurements and compare the median.

What's the difference between this and PageSpeed Insights?

PageSpeed Insights uses Lighthouse for lab testing and supplements it with field data from real visitors. My automated runs provide reproducible lab results for comparing changes.

Will this work with my framework or CMS?

Yes, Lighthouse measures every website in the browser. The specific tools used depend on your technology; I work with Nuxt, Vue.js, Laravel, WordPress hosting, and Node.js, among others.

What is the onboarding process like?

You provide me with the URL. I'll then send you an initial analysis with an assessment of the main causes and a recommendation for the next steps. Only then will you decide how to proceed.

From Real-World Experience

  • For a marketing website, the mobile score was below 50. A single hero video that loaded at full size on every device accounted for half of the problem. After implementing a poster image, lazy loading, and compressed fonts, the score remained consistently above 85.
  • I've integrated Lighthouse CI with thresholds into a CI/CD pipeline: Any release that lowers the performance score by more than five points is blocked before it goes live.

You can find out more about my background on the About Me page.

The page covering backend, database, and server-related issues is "Optimize Website Performance." For pipelines and operations, see "DevOps and Infrastructure."

🚦 πŸ€– πŸ“ˆ

Red, yellow, green: Your score can mean more than just a traffic light.

Give me the URL. You'll receive an initial assessment, the three main causes, and a recommendation on what to address first.

w3 stands for www: development for the World Wide Web, from application to operations.

v19 Β· e81babf