Core Web Vitals Optimization Audit
Analyze and fix Core Web Vitals issues for better SEO and UX
Audit and optimize Core Web Vitals for this page: **URL or component code:** ``` [PASTE_PAGE_CODE_OR_URL] ``` **Current scores (if known):** LCP: [LCP], FID/INP: [INP], CLS: [CLS] Analyze and fix: 1. **LCP (Largest Contentful Paint)** — target < 2.5s - Image optimization (format, sizing, lazy loading, priority hints) - Font loading strategy (preload, font-display) - Server response time (caching, CDN) 2. **INP (Interaction to Next Paint)** — target < 200ms - Long task identification and splitting - Event handler optimization - State update batching 3. **CLS (Cumulative Layout Shift)** — target < 0.1 - Explicit dimensions for images/videos - Font swap layout shifts - Dynamic content injection patterns 4. **Additional optimizations** — bundle size, code splitting, prefetching For each issue, provide the exact code change with before/after.
How to Use This Prompt
- 1Copy the prompt template above
- 2Paste into Claude, ChatGPT, or Cursor
- 3Replace [bracketed placeholders] with your specific project details
- 4Iterate on the AI output to refine and customize the results
More Performance Prompts
Related performance templates from the vault
React Memo Optimization Audit
Use this prompt to react memo optimization audit with AI assistance
Server Response Time Optimizer
Use this prompt to server response time optimizer with AI assistance
Next.js Performance Optimization
Optimize a Next.js application for Core Web Vitals and loading speed
Core Web Vitals Performance Sprint
Run a focused performance sprint to bring all Core Web Vitals into the green zone with measurable before/after improvements
You Might Also Like
Prompts from other categories that share similar tags
Web Worker for Heavy Computation
Use this prompt to web worker for heavy computation with AI assistance
Performance Bottleneck Finder
Identify and fix performance issues in slow code
SQL Query Optimizer
Optimize slow SQL queries with explain analysis
Memory Leak Detective
Systematically identify and fix memory leaks in Node.js or browser applications
Keep Exploring the Vault