Set and Enforce a Web Performance Budget

8 steps · about 3 h 25 min · Intermediate

  1. Define a first performance budget (guide, web.dev, 30 min)

    Convert user experience goals into limits for timing, page weight and resource counts.

  2. Choose user-centred metrics (guide, web.dev, 25 min)

    Use Core Web Vitals and supporting diagnostics without optimizing a single score blindly.

  3. Measure loading responsiveness (reference, web.dev, 25 min)

    Understand the Largest Contentful Paint candidate and common causes of delay.

  4. Measure interaction responsiveness (reference, web.dev, 25 min)

    Connect Interaction to Next Paint to long tasks, event handling and rendering work.

  5. Measure visual stability (reference, web.dev, 20 min)

    Find unexpected layout shifts and reserve space for late-loading content.

  6. Interpret lab measurements (guide, Chrome for Developers, 25 min)

    Read Lighthouse metric evidence and variability rather than treating the composite score as truth.

  7. Configure Lighthouse budgets (guide, Chrome for Developers, 25 min)

    Add resource-count and resource-size limits to an automated Lighthouse run.

  8. Enforce the budget in CI (guide, web.dev, 30 min)

    Run repeatable checks on representative pages and fail changes that exceed agreed thresholds.