lighthouse/viewer
Adam Raine 924ead7dc4
core(config): use explicit diagnostic group (#15901)
2024-03-28 15:00:33 -07:00
..
app tests: check for console errors and warnings in pptr tests (#15516) 2024-01-16 15:52:24 -08:00
test core(config): use explicit diagnostic group (#15901) 2024-03-28 15:00:33 -07:00
types misc: adopt minimal license headers (#15456) 2023-09-15 16:49:41 -07:00
.eslintrc.cjs misc: adopt minimal license headers (#15456) 2023-09-15 16:49:41 -07:00
README.md misc: use a unique local port for the treemap (#14308) 2022-08-24 09:57:46 -07:00
tsconfig.json deps: update to typescript 4.7 (#14058) 2022-06-08 12:36:17 -07:00

README.md

Lighthouse Viewer

Online at https://googlechrome.github.io/lighthouse/viewer/

Development

Run the following in the root folder of a Lighthouse checkout:

  • yarn
  • yarn build-viewer
  • yarn serve-gh-pages
  • open http://localhost:7333/viewer/

This compiles and minifies app/src/main.js. Results are written to dist/gh-pages/viewer/.

Deploy

Deploys should be done as part of the Lighthouse release process. To push the viewer to the gh-pages branch under viewer/, run the following in the root folder of a Lighthouse checkout:

yarn deploy-viewer

For more information on deployment, see releasing.md.

Usage

Load JSON from Gist

Pass the GitHub Gist identifier as gist query parameter.

e.g., http://localhost:7333/?gist=bd1779783a5bbcb348564a58f80f7099

Load JSON from URL

Pass the absolute URL as jsonurl query parameter.

e.g., http://localhost:7333/?jsonurl=https://gist.githubusercontent.com/Kikobeats/d570a1aa285c5d1d97bbda10b92fb97f/raw/4b0f14a5914edd25c95b4bd9d09728ab42181c3e/lighthouse.json

Run and load from PageSpeed Insights

Pass target URL psiurl query parameter.

e.g., http://localhost:7333/?psiurl=https://www.example.com&category=pwa&category=seo

The following query parameters are also supported as options:

category - Category to enable. One per category. strategy - mobile, desktop locale - locale to render report with utm_source - id that identifies the tool using the viewer