What does Lighthouse do?
Lighthouse is a tool from Google that automatically analyzes a web page and produces a performance and quality score across several categories.
What it checks:
- Performance
- LCP, FCP, TTI, TBT, CLS
- loading speed, interactivity, layout stability
- Accessibility
- text contrast, alt tags, keyboard access, aria attributes
- Best Practices
- HTTPS, secure requests, banning unsafe APIs
- SEO
- presence of a title tag, meta description, correct indexing, semantics
- PWA (Progressive Web App)
- offline mode, manifest, service worker
How it works:
- Loads the page like a regular user
- Measures key metrics (including Web Vitals)
- Checks the DOM, CSS, JS structure, and accessibility
- Generates a detailed report with scores and advice
Where to use it:
- The Lighthouse tab in Chrome DevTools
- Via the CLI (
lighthouse https://site.com) - Via CI (Lighthouse CI)
- Via API integrations or third-party tools (for example, PageSpeed Insights uses Lighthouse internally)
Conclusion: Lighthouse is an automated site audit for performance, accessibility, SEO, and stability. It provides metrics, a report, and recommendations to help you understand what slows the site down and how to fix it.
Short Answer
Interview readyPremium
A concise answer to help you respond confidently on this topic during an interview.