Accessibility First DevRel. I focus on ensuring content created, events held and company assets are as accessible as possible, for as many people as possible.
For clarity Page Speed Insights is just a web interface for Lighthouse so you get very similar data from both at default settings (the "lab data" is powered by Lighthouse).
Although this is an old question there is an alternative way to run Lighthouse (the engine behind Page Speed Insights) locally that may be useful to people in some circumstances.
Finally you really should be collecting your own Real User Metrics (RUM) data, as such I would recommend the Web Vitals library from Google if you don't want to build your own solution, you can pipe it to your Google Analytics to make life easy and keep all your data together too!
p.s. any questions on Page Speed Insights, Lighthouse or Web Vitals just ask, I know a reasonable amount about it as you can see from the all time rankings below on SO (I am Graham Ritchie for reference π):
Software dev at Netflix | DC techie | Conference speaker | egghead Instructor | TC39 Educators Committee | Girls Who Code Facilitator | Board game geek | @laurieontech on twitter
Accessibility First DevRel. I focus on ensuring content created, events held and company assets are as accessible as possible, for as many people as possible.
For clarity Page Speed Insights is just a web interface for Lighthouse so you get very similar data from both at default settings (the "lab data" is powered by Lighthouse).
The source code for Lighthouse is on Github which is how you can run the Command Line Interface as Laurie said in the article.
Fairly easy to install locally even if you are a complete noob when it comes to node like I was.
See this stack overflow answer I gave for more info on the benefits of the CLI over other methods:
answer re: Can I use pagespeed insights for my local host website or offline?
An alternative way to run Lighthouse
Although this is an old question there is an alternative way to run Lighthouse (the engine behind Page Speed Insights) locally that may be useful to people in some circumstances.
You can install the Lighthouse Command Line Interface (CLI) locally on your machine quiteβ¦
Finally you really should be collecting your own Real User Metrics (RUM) data, as such I would recommend the Web Vitals library from Google if you don't want to build your own solution, you can pipe it to your Google Analytics to make life easy and keep all your data together too!
p.s. any questions on Page Speed Insights, Lighthouse or Web Vitals just ask, I know a reasonable amount about it as you can see from the all time rankings below on SO (I am Graham Ritchie for reference π):
Yup! This post talks about the CLI and the various flags.
Thanks, I rephrased it to share the link to the CLI and reference that you had it in your post, not sure how I missed your references twice!
Great article BTW!