What is Google Lighthouse?
- Google Lighthouse is a free, open-source tool that helps improve the quality of web pages.
- It audits web pages for performance, accessibility, SEO, and more.
Why use Google Lighthouse?
- Improve search engine ranking.
- Lighthouse can help you optimize your pages for better search engine ranking results.
- Improve user experience
- Lighthouse can help you improve your website's speed, performance, and overall user experience (UX).
- Improve website quality
- Lighthouse can help you identify areas for improvement and take concrete steps to optimize your website.
What does Google Lighthouse do?
- Analyzes page load speed, accessibility, search engine optimization (SEO), and more
- Provides performance scores and suggestions for faster loading
- Focuses on Google's Core Web Vitals, which are the essential metrics Google uses to measure web pages' speed and overall UX
- Evaluates essential features like service worker registration and offline functionalities
- You can run Lighthouse in Chrome DevTools, From the command line, and As a Node module
How to Get Started and Go to The Page You Want to Test
- Right-click on the page you want to audit
- From the drop-down menu select "Inspect"
![Right-click drop-down menu with "inspect" boxed.](https://media.screensteps.com/image_assets/assets/005/110/313/original/1f533c04-412e-46f1-8b38-3ee5b4dbccc8.png)
- You will want to select "Lighthouse." You may need to select the double arrows in the top bar to find "Lighthouse."
![Inspect menu with the right double arrow button selected and the "Lighthouse" button boxed.](https://media.screensteps.com/image_assets/assets/005/110/315/original/09979dac-4b61-4330-ac89-3dd2a03bde96.png)
- Select what you would like to test.
- Once you have them selected, select "Generate Report."
- It would be a best practice to select only "accessibility" and "best practices" and then run both the "mobile" and "desktop" device. For this purpose, we suggest running it twice.
![Lighthouse homepage with some options selected from the menu and the "Generate report" button boxed.](https://media.screensteps.com/image_assets/assets/005/230/022/original/fe09c1f0-4b8c-405f-b745-6a6b1157c746.png)
- Once completed, it will give a percentage score out of 100.
- You can go through the testing site to find more information about what did not pass the automatic checker.
![Test results of the lighthouse.](https://media.screensteps.com/image_assets/assets/005/230/024/original/86659562-449a-41a0-b9af-d568e5973e55.png)
Note: You may see a warning at the top telling you that issues affect this lighthouse run, even if you use an incognito window. This is ok, but please be aware of possible false positives.
How to understand the results of Test
The Issues Are Grouped by Type
- Issues that failed the automated checks will appear.
- You can expand the accordion by selecting the "Carat (^) Symbol" on the right to see more details, including the failing elements.
![Issues that were found in the scan.](https://media.screensteps.com/image_assets/assets/005/208/438/original/7e543bbd-9885-44f0-9a52-88202c7b4014.png)
What about Items you may need to check with Lighthouse Manually
- Lighthouse will provide you with a list of items to check manually. I am finding it lower on the results page.
![The additional items to manually check.](https://media.screensteps.com/image_assets/assets/005/208/434/original/84c76e51-1bdd-44af-8a27-b6538c15f20f.png)
- Information on how to test them if you expand the carat on the right.
![Manually testing and how to tab order dropdown opened.](https://media.screensteps.com/image_assets/assets/005/208/436/original/da55b859-77a3-4a21-a03b-482b77f16841.png)
What are Passed Audits
- This section is for your reference about items that have passed! You do not have to do anything with this information.
- The information could be used to update roadmaps and others on progress.
![List of the passed checks.](https://media.screensteps.com/image_assets/assets/005/208/440/original/81d7a31d-ae08-4804-9adb-6a9f23061546.png)
What does it mean when Not Applicable
- The number of automated checks that appear not to apply to the scan.
![List of the not applicable checks.](https://media.screensteps.com/image_assets/assets/005/208/442/original/0c765369-3cf3-43f1-acd8-24a5282ef5e9.png)
What is Runtime Settings
Runtime information could be helpful when vendors or others are trying to trouble shoot any issues.
![The runtime report of the scan.](https://media.screensteps.com/image_assets/assets/005/208/444/original/a348e3cb-17a6-455c-8979-3c4c3552af28.png)
Additional Resources
- The following article provides more information about the A11y Lighthouse.
- Learn about accessibility and barriers encountered by users.
- This article is designed to help you learn more about data privacy.