Clean and Rebuild
- Published on
- ...
- Authors

- Name
- Huashan
- @herohuashan
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
| Metric | Actual Value | Target | Status | Description |
|---|---|---|---|---|
| FCP | 0.3s | < 1.8s | ✅ Excellent | First Contentful Paint |
| LCP | 0.4s | < 2.5s | ✅ Excellent | Largest Contentful Paint |
| TBT | 0ms | < 200ms | ✅ Perfect | Total Blocking Time |
| CLS | 0.026 | < 0.1 | ✅ Excellent | Cumulative Layout Shift |
| Speed Index | 0.5s | < 3.4s | ✅ Excellent | Speed Index |
| TTI | 1.3s | < 3.8s | ✅ Excellent | Time 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:
| Resource | Size | Type | Source |
|---|---|---|---|
| Google AdSense JS | 173 KB | JavaScript | Third-party |
| Google Fonts CSS | 155 KB | Stylesheet | Third-party |
| Google Analytics | 143 KB | JavaScript | Third-party |
| Noto Sans SC (119) | 78 KB | Font | Google Fonts |
| Noto Sans SC (108) | 65 KB | Font | Google Fonts |
| Noto Sans SC (111) | 64 KB | Font | Google Fonts |
| Noto Sans SC (101) | 59 KB | Font | Google Fonts |
| Noto Sans SC (115) | 57 KB | Font | Google Fonts |
| AdSense Loader | 56 KB | JavaScript | Third-party |
| Noto Sans SC (116) | 54 KB | Font | Google 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
- Data-Driven - Lighthouse report precisely locates bottlenecks, avoiding blind optimization
- User-First - Accessibility and performance equally important, both are user experience
- Marginal Benefits - Seemingly minor optimizations are amplified in real environment
- 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:
- Lighthouse CI - Automated performance testing
- PageSpeed Insights - Google official testing tool
- WebPageTest - Deep performance analysis
- WebAIM Contrast Checker - Contrast checking
Related Posts
Enter Your GA4 Property ID (Numbers Only)
Page view count will be displayed in article meta information (after date, reading time, and author)
SEO Optimization in the AI Era - From Search Engines to AI Agents
AI is changing how information is accessed. This article introduces how to optimize blogs for AI agents (ChatGPT, Perplexity), including Schema.org structured data, FAQ markup, and robots.txt configuration.
Bidirectional Links System Demo - Backlinks
Demonstrating the bidirectional links feature implemented in Hugo blog, inspired by knowledge management approaches in Obsidian and Roam Research.