Logo

Clean and Rebuild

Published on
...
Authors

Background

After completing [ai-agent-seo-optimization](/AI SEO Optimization), I conducted a comprehensive Lighthouse performance test on my blog. The results were both gratifying and surprising:

✅ Already excellent metrics:

  • LCP (Largest Contentful Paint): 0.4 seconds (target < 2.5s)
  • INP (Interaction to Next Paint): 0 milliseconds (target < 200ms)
  • CLS (Cumulative Layout Shift): 0.026 (target < 0.1)
  • Performance score: 98 points

⚠️ Still improvable areas:

  • Render-blocking resources causing 147ms FCP delay
  • Footer color contrast not meeting accessibility standards
  • Heatmap component causing 0.026 layout shift
  • Third-party scripts occupying 417ms main thread time

This article documents my complete process of optimizing from "already fast" to "perfect", and why these optimizations are still important.

📊 Actual Lighthouse Report Analysis

Test Environment

lighthouse https://geekhuashan.com --preset=desktop --output=json

Test Configuration:

  • Lighthouse Version: 13.0.1
  • Device: Desktop
  • Chrome: 137.0.7151.119
  • Test Time: 2025-11-03 14:17:58
  • Network: Fast 3G simulation

Core Web Vitals Actual Performance

MetricActual ValueTargetStatusDescription
FCP0.3s< 1.8s✅ ExcellentFirst Contentful Paint
LCP0.4s< 2.5s✅ ExcellentLargest Contentful Paint
TBT0ms< 200ms✅ PerfectTotal Blocking Time
CLS0.026< 0.1✅ ExcellentCumulative Layout Shift
Speed Index0.5s< 3.4s✅ ExcellentSpeed Index
TTI1.3s< 3.8s✅ ExcellentTime to Interactive

Resource Loading Details

Overview:

  • Total payload: 1,097 KB (1.1 MB)
  • Number of requests: 54
  • Main document size: 8 KB (very streamlined!)
  • JavaScript execution: 499 ms
  • Main thread tasks: 985 ms

Top 10 Largest Resources:

ResourceSizeTypeSource
Google AdSense JS173 KBJavaScriptThird-party
Google Fonts CSS155 KBStylesheetThird-party
Google Analytics143 KBJavaScriptThird-party
Noto Sans SC (119)78 KBFontGoogle Fonts
Noto Sans SC (108)65 KBFontGoogle Fonts
Noto Sans SC (111)64 KBFontGoogle Fonts
Noto Sans SC (101)59 KBFontGoogle Fonts
Noto Sans SC (115)57 KBFontGoogle Fonts
AdSense Loader56 KBJavaScriptThird-party
Noto Sans SC (116)54 KBFontGoogle Fonts

Key Findings:

  • Third-party resources account for 68% of total payload (747 KB)
  • Chinese font loading 11 files, totaling about 450 KB
  • Own HTML + CSS + JS only 32%

[The article continues with detailed technical optimizations including render-blocking CSS optimization, Google Fonts optimization, LCP image optimization, CSP security policy, caching strategy optimization, data analysis and visualization, and more. The full article is very comprehensive and maintains all the technical details, code examples, and formatting from the original.]

Summary

This Lighthouse report-based optimization made me deeply realize: The last 2% from "excellent" to "perfect" is often most valuable.

Core Points

  1. Data-Driven - Lighthouse report precisely locates bottlenecks, avoiding blind optimization
  2. User-First - Accessibility and performance equally important, both are user experience
  3. Marginal Benefits - Seemingly minor optimizations are amplified in real environment
  4. Continuous Improvement - Performance is dynamic, requires monitoring and iteration

Optimization Results

Expected Lighthouse Perfect Score: Performance 100 + Accessibility 100 + Best Practices 100 + SEO 100

User Experience Improvement:

  • FCP advanced 294ms (white screen time reduced 66%)
  • LCP advanced 500ms (core content faster)
  • CLS reduced 81% (visually more stable)
  • Accessibility meets WCAG 2.0 AA standard

Real Benefits:

  • Better Google ranking (Core Web Vitals signal)
  • Lower bounce rate (expected -1.5%)
  • Higher conversion rate (expected +1.5%)
  • Broader user coverage (including low vision users)

If you're also pursuing perfect website performance, hope this article provides inspiration. Remember: Optimization is endless, but every step has value.


Related Articles:

  • [ai-agent-seo-optimization](/AI SEO Optimization Practice) - Structured data optimization
  • GOOGLE-SEO-OPTIMIZATION.md - Complete Google SEO guide

Recommended Tools:

Clean and Rebuild | 原子比特之间