# 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
Seikika catalog assessment: packaged (5/5 checks passed).

## Adoption

Use Lighthouse and the site-maintained Seikika recipe at https://good-standard-bad-standard.pages.dev/recipes/lighthouse/README.md. Identify a representative production route and an agreed mobile budget. Run Lighthouse against the same build, device profile and route at least three times. Save the JSON reports, record the median performance score and separate accessibility checks, and explain the highest-impact regression. Compare like-for-like results after the fix.

### Tool command

```
cd .lighthouse && npx --no-install lighthouse "${PAGE_URL:?Set PAGE_URL to the production route}" --chrome-flags="--headless" --output=json --output-path=./report.json && seikika report . --all
```

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