Getting started with Google Lighthouse
As we saw in the previous section, it's not easy to determine how fast "fast" is. Google came up with an idea. They built Lighthouse, "an open-source, automated tool for improving the quality of web pages. You can run it against any web page, public or requiring authentication. It has audits for performance, accessibility, progressive web apps, SEO and more" (https://www.hardkoded.com/ui-testing-with-puppeteer/lighthouse).
Lighthouse will grab the website you choose, apply a list of metrics and recommendations it finds important, and give you a score from 0 to 100. It will analyze the website under five categories:
- Performance: The most popular category. Lighthouse will measure how optimized the website is, that is, how fast it gets ready for user interaction.
- Accessibility: I would love to see developers paying more attention to this category. Here, Lighthouse will evaluate how accessible the website is...