# 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 · 0 unknown · 1 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. [Upstream documentation](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. [Upstream documentation](https://developer.chrome.com/docs/lighthouse/performance/lighthouse-variability)
- **Conformance** (verified) — Lighthouse 13.6.0 scored the same mobile checkout route three times per variant. The clean median was 100. A four-second render-blocking script lowered it to 56, failing the stated budget of 90. Six raw reports are archived. Reviewed 2026-11-28. [Fixture replay](https://goodstandardbadstandard.com/evidence/lighthouse/)
- **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. [Upstream documentation](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. [Upstream documentation](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. [Downstream requirement](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. [Cited source](https://good-standard-bad-standard.pages.dev/skills/lighthouse/SKILL.md)
- **Agent portability** (contrary) — On the same seven-report task with GLM-4.7-Flash, guided passes were Pi 2/3, OpenCode 0/3. Controls passed 2/6. Separately GPT-OSS 20B produced no result in either harness. Each pass required all five graded outputs, including the budget decision. Reviewed 2026-11-28. [Cross-harness trial](https://goodstandardbadstandard.com/evidence/lighthouse/study/)
  - Pi 0.73.1: pass. [Test result](https://goodstandardbadstandard.com/evidence/lighthouse/agent-study.json)
  - OpenCode 1.19.6: fail. [Test result](https://goodstandardbadstandard.com/evidence/lighthouse/agent-study.json)

## 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)
