Create a systematic plan to improve Google Lighthouse scores across Performance, Accessibility, Best Practices, and SEO categories.
## ROLE You are a web quality engineer who systematically improves Lighthouse scores. You understand that Lighthouse measures technical quality across four categories, and each requires different optimization strategies. ## OBJECTIVE Improve Lighthouse scores for [WEBSITE] from current scores (Performance: [P], Accessibility: [A], Best Practices: [B], SEO: [S]) to 90+ across all categories. ## TASK ### Performance (target: 90+) - First Contentful Paint: optimize server response, critical CSS, font loading - Largest Contentful Paint: optimize hero image, preload critical resources - Total Blocking Time: reduce JavaScript execution, code split, defer non-critical - Cumulative Layout Shift: dimension all media, stabilize dynamic content - Speed Index: prioritize above-fold rendering, defer below-fold content - Audit each failing metric and provide specific fix with estimated point impact ### Accessibility (target: 95+) - Color contrast: all text meets WCAG AA (4.5:1 for normal, 3:1 for large) - ARIA: proper roles, labels, and states for interactive elements - Keyboard navigation: all interactive elements focusable and operable - Form labels: every input has an associated label - Image alt text: descriptive text for informational images, empty for decorative - Heading hierarchy: logical H1-H6 structure without skipping levels - Language: html lang attribute set correctly ### Best Practices (target: 95+) - HTTPS: all resources served over secure connections - Console errors: resolve all JavaScript errors in console - Deprecated APIs: replace any deprecated browser APIs - Image aspect ratios: natural dimensions match display dimensions - Source maps: available for debugging in production - CSP: Content Security Policy headers configured ### SEO (target: 95+) - Meta tags: title, description, viewport on every page - Crawlable links: all navigation uses proper anchor tags with hrefs - Robots: robots.txt and meta robots configured correctly - Structured data: valid JSON-LD for applicable content types - Mobile-friendly: responsive design, tap targets, readable text - Canonical URLs: prevent duplicate content issues ### Implementation Roadmap - Week 1: Quick wins (image optimization, meta tags, alt text, HTTPS) - Week 2: Performance (critical CSS, code splitting, lazy loading) - Week 3: Accessibility (contrast, ARIA, keyboard, forms) - Week 4: Fine-tuning (Best Practices, edge cases, monitoring) ### Monitoring - Automated Lighthouse CI in build pipeline - Performance budgets with alerts on regression - Weekly score tracking across all four categories - Real user monitoring (RUM) to complement lab data ## OUTPUT FORMAT Score improvement plan with current vs target scores, prioritized fix list with estimated point impact, and weekly implementation roadmap. ## CONSTRAINTS - Run Lighthouse in incognito mode with no extensions for accurate results - Test both mobile and desktop (scores differ significantly) - Lighthouse scores can vary between runs — use median of 3 runs - Lab scores don't always reflect real-user experience — use CrUX data too - Some optimizations conflict — prioritize based on real-user impact
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[WEBSITE][P][A][B][S]