Skip to content

Instantly share code, notes, and snippets.

@SteveBarnett
Last active August 29, 2015 14:27
Show Gist options
  • Save SteveBarnett/518814dbb3ba7666519e to your computer and use it in GitHub Desktop.
Save SteveBarnett/518814dbb3ba7666519e to your computer and use it in GitHub Desktop.
Boilerplate for running Google's PageSpeedInsights from the command line Raw

https://www.npmjs.com/package/psi


psi --strategy "mobile" --threshold "85" http://example.com


Running PSI via the web-based version or through DevTools gives more explicit instructions on how to fix things, so it's good to check there too.

The default strategy is mobile, but it's nice to have it explicit. The default threshold is 70, but we want something a bit tougher.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment