GS/BS
← Standards directory
Performance

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.

HTML / JavaScript / CSS

Community rubric · v1

The evidence

Evidence coverage7 / 8
7 supported · 0 unresolved · 1 contrary

One point for each verified check. Unknown means we still need evidence. Contrary evidence records an observed result that goes against the criterion.

Latest evidence review ·

  • 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.

    Upstream documentation ↗
  • Measurement

    Verified

    Chrome recommends repeated runs and aggregate results to account for measurement variability. Compare the same route and settings across revisions.

    Upstream documentation ↗
  • 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.

    Fixture replay ↗
  • 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.

    Upstream documentation ↗
  • 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.

    Upstream documentation ↗
  • 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.

    Downstream requirement ↗
  • 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.

    Cited source ↗
  • Agent portability

    Contrary evidence

    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.

    Cross-harness trial ↗

    Pi 0.73.1 trial ↗ · pass

    OpenCode 1.19.6 trial ↗ · fail

Use this standard

Run the check with the tool installed and configured for your project.

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

Agent prompt

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.
Read the agent skill ↗

Optional Seikika integration

Lighthouse (site-maintained recipe) ↗

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

Primary source

Lighthouse documentation ↗