Understanding the Lighthouse Scoring System

Lighthouse is an open-source automated tool from Google for auditing web pages' performance, accessibility, SEO, and best practices. The Performance Score is the metric developers care about most, directly impacting user experience and search engine rankings. Since Lighthouse v12 was released in 2024, the scoring algorithm places even more emphasis on visual experience and interaction responsiveness, with increased weight on Core Web Vitals.

A low-scoring website (below 50) typically means slow loading, sluggish interaction, and poor user experience, potentially causing up to 40% user流失. Conversely, websites optimized to 90+ not only have high user satisfaction but also enjoy clear advantages in search engine rankings. This article systematically covers the optimization path from 50 to 95.

1. Lighthouse Score Metrics Explained

1.1 Six Core Metrics

Metric Abbreviation Weight Excellent Threshold
Largest Contentful Paint LCP 25% < 2.5s
First Input Delay / Total Blocking Time FID / TBT 25% < 50ms / < 200ms
Cumulative Layout Shift CLS 15% < 0.1
Speed Index SI 10% < 3.4s
Time to Interactive TTI 10% < 3.8s
First Contentful Paint FCP 15% < 1.8s

2. Phased Optimization Plan

2.1 Basic Optimization (50 → 70)

Image Optimization:

  • Use WebP or AVIF format instead of JPEG/PNG
  • Set correct image dimensions, avoid oversized images
  • Enable image lazy loading

Resource Optimization:

  • Compress CSS and JavaScript files
  • Remove unused CSS (use PurgeCSS)
  • Enable text compression (Gzip / Brotli)
// Example: Using WebP format
const picture = document.createElement('picture');
picture.innerHTML = `
  <source srcset="image.avif" type="image/avif">
  <source srcset="image.webp" type="image/webp">
  <img src="image.jpg" alt="Optimized image">
`;

2.2 Advanced Optimization (70 → 90)

Critical Rendering Path Optimization:

  • Inline critical CSS (Critical CSS)
  • Async load non-critical JavaScript (defer / async)
  • Use <link rel="preload"> to preload critical resources

Network Optimization:

  • Deploy CDN to accelerate static resource delivery
  • Enable HTTP/2 or HTTP/3
  • Configure reasonable caching strategy (Cache-Control)

2.3 Extreme Optimization (90 → 95+)

  • Use CDN edge computing (e.g., Cloudflare Workers)
  • Implement predictive preloading (Speculative Rules API)
  • Adopt micro-frontend architecture to split applications
  • Use streaming SSR to reduce TTFB

3. Notes

  1. Mobile First: Lighthouse mobile scores are typically lower and should be prioritized
  2. Continuous Monitoring: Performance optimization is not a one-time task; integrate into CI/CD
  3. Real User Data: Validate optimization effects with RUM (Real User Monitoring) data
  4. Avoid Over-optimization: Balance performance and functionality

4. Summary

The optimization journey from 50 to 95 requires systematic analysis and consistent effort. Start with the easiest implementations — image optimization and resource compression — then gradually move to critical rendering path optimization, network layer optimization, and application architecture optimization. Use Lighthouse CI to automatically audit on every deployment, ensuring performance doesn't regress.