Skip to content

tanphan1105/web-performance-surgeon

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 

Repository files navigation

πŸ”¬ Web Performance Surgeon

Automatically audit and fix all critical Lighthouse performance issues in a single HTML file β€” no config needed.


😫 The Pain Point

You built a beautiful 3D product page. You open Lighthouse. Score: 42/100. You spend 4 hours hunting down: excess font weights, render-blocking scripts, missing preconnect, lazy-loaded hero images, broken JSON-LD schemas...

πŸ’Š One Command Fix

python web_performance_surgeon.py index.html --fix

✨ What It Detects & Fixes

Issue Detection Auto-Fix
Excess font weights (>3) βœ… βœ… Reduces to 400;600;700
Render-blocking <script> in <head> βœ… βœ… Moves to </body>
Missing preconnect + dns-prefetch βœ… βœ… Injects for all domains
Hero image lazy loaded βœ… βœ… Sets eager + fetchpriority=high
Corrupted JSON-LD schema βœ… ⚠ Report only (use json-ld-guardian)

πŸš€ Quick Start

git clone https://github.com/tanphan1105/web-performance-surgeon.git
cd web-performance-surgeon

# Audit only (no changes)
python web_performance_surgeon.py path/to/index.html

# Audit + auto-fix
python web_performance_surgeon.py path/to/index.html --fix

πŸ“– Real-World Case Study

Used on a B2B industrial 3D model landing page (model-viewer + 21 product cards):

  • Font requests: 8 β†’ 4 files (-50%)
  • Render-blocking scripts: 1 β†’ 0
  • Estimated LCP improvement: ~800ms

"Stop guessing. Measure first. Fix surgically."

πŸ’– Support Open Research

If this tool saved you hours of Lighthouse debugging, consider buying me a coffee. It fuels the continuous development of these SEO and performance tools!

ko-fi

About

Automatically audit and fix all critical Lighthouse performance issues in a single HTML file. No config needed.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages