⚡ Core Web Vitals Auditor
Analyze live URLs or raw HTML markup for LCP, CLS, INP, FCP, and TTFB bottlenecks.
Diagnostic Findings & Recommendations
🛠️ HTML Speed Transformer
Automated AST speed rewrites: inject missing dimensions, lazy loading, font preconnects, and script deferral.
Transformation Options
Fix Missing Image Dimensions
Adds width/height and aspect-ratio to prevent layout shifts (CLS)
Native Lazy Loading & Async Decoding
Adds loading="lazy" & decoding="async" to offscreen images
Font Preconnect & Display Swap
Eliminates Flash of Invisible Text (FOIT) with &display=swap
Defer Render-Blocking Scripts
Adds defer to scripts in head to unblock main thread interactivity
Preload Hero Image (fetchpriority="high")
Prioritizes LCP hero image fetch in browser preload scanner
Optimization Summary
- Ready to optimize. Click "Transform HTML Now".
📱 PWA & Service Worker Studio
Generate production Web App Manifest, Service Worker caching strategies, and offline fallback.
🖼️ OpenGraph & Social Previewer
Real-time mockups for Google Search SERP, Twitter Cards, and LinkedIn snippets.
Google Search Preview
Twitter / X Card Preview
⚖️ Performance Diff Comparator
Measure before vs after speed gains, metric deltas, and resolved audit findings.
Comparative Delta Analysis
🚀 Cache-Control & Headers Exporter
Generate production caching rules for Netlify, Vercel, Nginx, Cloudflare, Apache, and Next.js.
Loading configuration...
🤖 AI Agent & MCP Hub
Integrate CWV Speed Studio directly into Claude Desktop, Cursor, Cline, and Zed via Model Context Protocol.
Loading MCP configuration...
Exposed Agent Tools (6 Tools)
📖 Core Web Vitals Best Practices & CLI Cheatsheet
Google 2024-2026 Core Web Vitals Official Thresholds and Commands.
CWV Metric Thresholds (Google 2024+)
| Metric | Good (Pass) | Needs Work | Poor |
|---|---|---|---|
| LCP (Largest Contentful Paint) | ≤ 2.5s | 2.5s - 4.0s | > 4.0s |
| CLS (Cumulative Layout Shift) | ≤ 0.10 | 0.10 - 0.25 | > 0.25 |
| INP (Interaction to Next Paint) | ≤ 200ms | 200ms - 500ms | > 500ms |
| FCP (First Contentful Paint) | ≤ 1.8s | 1.8s - 3.0s | > 3.0s |
| TTFB (Time to First Byte) | ≤ 800ms | 800ms - 1800ms | > 1800ms |
CLI Commands Quick Reference
# 1. Audit a live URL cwv-speed audit https://example.com --device mobile # 2. Optimize an HTML file cwv-speed optimize input.html -o output.html --hero-preload # 3. Launch CWV Speed Studio (Web UI) cwv-speed ui --port 8448 --open # 4. Run CI/CD Performance Gate cwv-speed ci-gate https://staging.example.com --min-score 90 --max-cls 0.05 # 5. Start MCP Server for Claude / Cursor cwv-speed mcp