What is Lighthouse?
Lighthouse is Google's open-source tool for auditing web page quality. It measures Performance, Accessibility, Best Practices, SEO, and PWA compliance.
Ways to Run Lighthouse
- Chrome DevTools - Built into Chrome, access via F12 > Lighthouse tab
- PageSpeed Insights - Web-based tool at pagespeed.web.dev
- Lighthouse CLI - npm install -g lighthouse for command-line usage
- CI/CD Integration - Use lighthouse-ci for automated testing
Understanding Lighthouse Scores
Lighthouse scores range from 0-100. Scores 90-100 are good (green), 50-89 need improvement (orange), and 0-49 are poor (red). Focus on metrics weighted heavily in the Performance score.