Do you know the best way to get metrics out of your browser?
Updated by Tiago Araújo [SSW] 3 years ago. See history
You can run Lighthouse:
- In Chrome DevTools
- From the command line
- As a Node module
It runs a series of audits against a URL and then it generates a report on how well the page did. From there, you can use the failing audits as indicators on how to improve the page. Each audit has a reference doc explaining why the audit is important, as well as how to fix it.

✅ Figure: Good Example - Google Chrome Lighthouse is showing 100%
Lighthouse Level 1: Throttling Off
For applications intended for use on a desktop and from within a well-connected office (such as your intranet or office timesheet application) test with throttling turned off.
Lighthouse Level 2: Throttling On
To see how well your website would perform on low-spec devices and with poor internet bandwidth, use the throttling features. This is most important for high volume, customer-facing apps.

✅ Figure: Good Example - Lighhouse can simulate slow netwrking and CPU when performing tests
Lighthouse Level 3: Automated testing
For business-critical pages, you may want to automate Lighthouse testing as part of your Continuous Delivery pipeline. This blog post by Andrejs Abrickis shows how to configure an Azure DevOps build pipeline that performs Lighthouse testing.
Categories
Need help?
SSW Consulting has over 30 years of experience developing awesome software solutions.