This is the markdown version of this page. It is the same content AI assistants and crawlers read.

Run a free AI Visibility Scan →
[Atomic Glue](atomicglue.co)
Glossary

Performance Budget

A set of agreed-upon limits on performance metrics or resource quantities that a team commits not to exceed. Prevents regressions from shipping.

Performancecategory3linked terms5mentioned

Definition

A performance budget is a contract among developers, designers, and stakeholders setting hard limits on performance. Budgets can be quantity-based (max 300 KB JS, max 50 HTTP requests) or metric-based (LCP under 2.0 s). Enforced in CI/CD to block deploys exceeding limits.

Why Budgets Matter

Every new feature adds weight. Without a budget, teams accumulate bloat until the site is slow. A budget forces tradeoffs upfront: 'Add this library, but remove something equal in weight.'

Common Misunderstandings

Budgeting only page weight is insufficient. A 200 KB page can have 500 ms of main thread blocking. Budget both quantity and metric dimensions. Budgets need periodic review.

Implementation

Use Lighthouse CI with budget assertions, bundlesize, or webpack performance hints. Define budgets in version control. Fail CI on budget exceedance.

Note

Starting point: 300 KB JS, 100 KB CSS, 2 MB images, under 50 requests.

In code

{
  "ci": {
    "assert": {
      "assertions": {
        "categories:performance": ["error", {"minScore": 0.9}],
        "resource-summary:script:size": ["error", {"maxNumericValue": 300000}]
      }
    }
  }
}

Common questions

Q. What if we need to exceed budget?
A. Discuss deliberately. A budget is a baseline, not a wall.

Key takeaways

  • Enforceable limit on metrics/resources.
  • Prevents gradual bloat.
  • Budget both quantity and metrics.
  • Enforce in CI/CD.

At a glance

Type
Process
Applies to
Metrics, sizes, requests
Tool
Lighthouse CI
Enforcement
CI/CD

How Atomic Glue helps

Atomic Glue helps define and enforce performance budgets with Lighthouse CI. Web Development services.

Get in touch

Underlined terms have their own entry. Selecting one shows it on the map below.

Atomic Glue. "Performance Budget." Glossary.atomicglue.co/glossary/performance-budget

How Performance Budget connects

Linked in the text 3Terms this entry links to directly.
Mentioned 5Terms named in this entry without a link.

A set of agreed-upon limits on performance metrics or resource quantities that a team commits not to exceed. Prevents regressions from shipping.

Definition

A performance budget is a contract among developers, designers, and stakeholders setting hard limits on performance. Budgets can be quantity-based (max 300 KB JS, max 50 HTTP requests) or metric-based (LCP under 2.0 s). Enforced in CI/CD to block deploys exceeding limits.

Why Budgets Matter

Every new feature adds weight. Without a budget, teams accumulate bloat until the site is slow. A budget forces tradeoffs upfront: 'Add this library, but remove something equal in weight.'

Common Misunderstandings

Budgeting only page weight is insufficient. A 200 KB page can have 500 ms of main thread blocking. Budget both quantity and metric dimensions. Budgets need periodic review.

Implementation

Use Lighthouse CI with budget assertions, bundlesize, or webpack performance hints. Define budgets in version control. Fail CI on budget exceedance.

Note

Starting point: 300 KB JS, 100 KB CSS, 2 MB images, under 50 requests.

In code


{
  "ci": {
    "assert": {
      "assertions": {
        "categories:performance": ["error", {"minScore": 0.9}],
        "resource-summary:script:size": ["error", {"maxNumericValue": 300000}]
      }
    }
  }
}

Common questions

Q: What if we need to exceed budget?

A: Discuss deliberately. A budget is a baseline, not a wall.

Key takeaways:

  • Enforceable limit on metrics/resources.

  • Prevents gradual bloat.

  • Budget both quantity and metrics.

  • Enforce in CI/CD.

Schedule a call.

30 min · Video call

1
Date
2
Time
3
Details
Opens a lens that shows what AI reads on this page.