Skip to content
Performance & Accessibility

A Practical Guide to Lighthouse in Continuous Integration

Running Lighthouse automatically on each build so performance and accessibility regressions are caught before release.

Marcus Adeyemi Technical Director 2 min read 21 views
A Practical Guide to Lighthouse in Continuous Integration

What is at stake

Performance work decays without automation, and CI checks make regressions visible when they are cheap to fix.

The playbook

  1. Run audits on key page templates
  2. Set budgets based on current performance
  3. Run several times and use medians
  4. Treat accessibility audits as a floor, not proof
  5. Review trends rather than single scores

Where it goes wrong

Avoid:

  • Failing builds on noisy single runs
  • Chasing a perfect score
  • Auditing only the homepage
  • Assuming automated checks cover accessibility
What to do and what to avoid with lighthouse in continuous integration, side by side
Good practice against the usual mistakes, from the sources listed below.

The numbers behind it

Published figures for Lighthouse in Continuous Integration
MeasureFigure
Lighthouse CIruns audits as part of a build pipeline
Budgetsbuilds can fail when metrics exceed limits
Variancelab results vary between runs
ScopeLighthouse tests pages, not whole user journeys

Getting outside help

When to hand it over: Bring in help when performance regressions keep returning.

Where this comes from

The figures and practices above come from the sources listed.

Working on something like this?

We take on Performance & Accessibility work for teams who want it done once, properly. Tell us what you are building and we will tell you honestly whether we are the right studio for it. Start a project.

Where to go next

Spotted something wrong? Report an error on this page. We correct on the page and say what changed.

All services

The work behind this article, and what it costs.

Marcus Adeyemi

Builds and maintains the web work. Writes about front-end architecture, performance, accessibility and the unglamorous parts of keeping a site alive.

Keep reading

More in Performance & Accessibility