Introduction#
Lighthouse provides audits for performance, accessibility, progressive web apps, SEO, and more.
You can run Lighthouse in Chrome DevTools, from the command line, or as a Node module. Provide a URL for Lighthouse to audit, and it will run a series of audits on that page, then generate a report about the webpage's performance. You can use the failed audits as metrics to understand how to improve the webpage. Each audit has reference information explaining its importance and how to address issues.
Getting Started#
Running Lighthouse in Chrome DevTools#
It is built into Chrome DevTools (if not, please download a desktop version of Chrome), and the steps are:
- Open an incognito/private browsing window, which is helpful for subsequent checks (to avoid loading extensions affecting the checks).
- Open the webpage you want to check and press the
F12
shortcut key. - Click on the Lighthouse tab, then click on Analyze page load, as shown in the image below:
- Wait for 30 - 60 seconds, and Lighthouse will display a report on the page.
Others#
Google also provides various ways to run Lighthouse:
- Install and run the Node command line tool
- Run PageSpeed Insights
- Run Lighthouse as a Chrome extension
If you want to share it with others, refer to: Online sharing and viewing reports