# Lighthouse

Set a performance budget

Measure how a page loads on a throttled mobile device. Record several runs of the same production route and compare the median performance score against an agreed budget.

Category: Performance
Languages: HTML, JavaScript, CSS

## Standard evidence

Rubric v1 · 7/8 verified · 1 unknown · 0 contrary · reviewed 2026-11-28

- **Definition** (verified) — Chrome defines the performance score as the weighted combination of individual metric scores. It places scores from 90 through 100 in the good range. Reviewed 2026-11-28. [Source](https://developer.chrome.com/docs/lighthouse/performance/performance-scoring)
- **Measurement** (verified) — Chrome recommends repeated runs and aggregate results to account for measurement variability. Compare the same route and settings across revisions. Reviewed 2026-11-28. [Source](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-variability)
- **Conformance** (verified) — The catalog publishes a synthetic fixed-route comparison: the two mobile medians must be 84 and 89, the candidate misses a budget of 90, and one desktop capture must be excluded. The fixture tests budget interpretation. Reviewed 2026-11-28. [Source](https://good-standard-bad-standard.pages.dev/evidence/lighthouse/agent-trial.mjs)
- **CI enforcement** (verified) — The Lighthouse CI assertion configuration accepts minimum category scores, aggregation methods and error severity. A failing error-level assertion can fail the CI run. Reviewed 2026-11-28. [Source](https://github.com/GoogleChrome/lighthouse-ci/blob/main/docs/configuration.md#assert)
- **Getting started** (verified) — Chrome's guide lists the browser and Node prerequisites, installs Lighthouse, runs it against one URL and explains how to open or export the resulting audit report. Reviewed 2026-11-28. [Source](https://developer.chrome.com/docs/lighthouse/overview#install-and-run-the-node-command-line-tool)
- **Real-world adoption** (verified) — Shopify requires a minimum average Lighthouse performance score of 60 across product, collection and home pages on both desktop and mobile for Theme Store submissions. Reviewed 2026-11-28. [Source](https://shopify.dev/docs/storefronts/themes/store/requirements)
- **Agent guidance** (verified) — For a single route, collect comparable reports and check the mobile median against the agreed budget. If it misses, inspect the underlying metrics and failing audits, then retest the same build conditions and report remaining uncertainty. Reviewed 2026-11-28. [Source](https://good-standard-bad-standard.pages.dev/skills/lighthouse/SKILL.md)
- **Agent portability** (unknown) — Codex CLI and OpenCode could not produce task answers in the published trial. The provider returned an authorization error for Codex and a server error for OpenCode. Neither attempt can establish how a functioning harness would perform. Reviewed 2026-11-28. [Source](https://good-standard-bad-standard.pages.dev/evidence/lighthouse/README.md)
  - Codex CLI: inconclusive. [Test result](https://good-standard-bad-standard.pages.dev/evidence/lighthouse/README.md)
  - OpenCode: inconclusive. [Test result](https://good-standard-bad-standard.pages.dev/evidence/lighthouse/README.md)

## Adoption

With Node.js 24, Chrome or Chromium and Lighthouse 13.6.0, audit one production route under a fixed mobile profile. Record the page, build revision, browser version and budget. Take three runs per revision and retain each JSON report. Compare median performance scores and the underlying metric deltas. If the budget fails, inspect the failing audits, make a scoped change, then rerun the same route and settings. Report the evidence paths, remaining shortfall and any run-to-run variation.

### Tool command

```
npx --yes --package=lighthouse@13.6.0 lighthouse "${PAGE_URL:?Set PAGE_URL to the route under test}" --chrome-flags="--headless" --output=json --output-path=./lighthouse-report.json
```

### Seikika package

[Lighthouse (site-maintained recipe)](https://good-standard-bad-standard.pages.dev/recipes/lighthouse/README.md)

curl -fsSLO "https://good-standard-bad-standard.pages.dev/recipes/lighthouse.tar.gz" && curl -fsSLO "https://good-standard-bad-standard.pages.dev/recipes/lighthouse.tar.gz.sha256" && sha256sum -c lighthouse.tar.gz.sha256 && tar -xzf lighthouse.tar.gz && npm install --save-dev --save-exact lighthouse@13.6.0

## References

- [Tool documentation](https://developer.chrome.com/docs/lighthouse/overview)
- [Agent skill](/skills/lighthouse/SKILL.md)
