# Theme performance budgets: a step-by-step that follows how practitioners actually do it

Source: https://returnsift.com/blog/2026-12-01-theme-performance-budgets-a-step-by-step-that-follows-how-practitioners-actually-do-it.html

How-to · 2026-12-01


A performance budget is a number the theme is not allowed to cross: total JavaScript per template, image weight per page type, and the Core Web Vitals targets those budgets exist to protect, LCP under 2.5 seconds, INP under 200 milliseconds, CLS under 0.1 at the 75th percentile. Practitioners set budgets per template, because the product page and the homepage live different lives, then wire the budget into the release process so a breach blocks a deploy the way a failed test would. A budget that lives in a wiki is a wish.

## Step one: measure the current state per template

Run lab tests on the templates that carry revenue, product, collection, home, cart, on a throttled mid-range mobile profile, and record the weights: total JS, CSS, images, fonts, and third-party requests per template. Most stores have never seen their own numbers itemised, and the first measurement usually finds an app or a legacy script nobody remembers installing.

Pair the lab numbers with field data from Search Console's Core Web Vitals report, which grades groups of similar pages on real visits. The lab tells you what to fix; the field tells you whether it mattered.

## Step two: set budgets that bite

Set the JS budget from the INP target backwards: interaction cost on a mid-range phone is roughly proportional to the script the main thread must parse and run, so a store chasing 200-millisecond interactions cannot ship desktop-class JavaScript to phones. Set image budgets per template from the LCP element's needs: the hero earns its kilobytes; the fifth carousel slide does not.

Write the budgets as deploy gates with an owner. When a feature would breach the budget, the conversation is explicit: remove something, defer the script, or raise the budget with a named reason and a review date. That conversation is the entire value of the system.

## Step three: spend deliberately and re-audit

Every app, widget, and personalisation tool draws on the same budget. Keep a register of third parties with their weight and their earnings, and review it quarterly, because apps accrete: the chat widget from a past support tool, the pixel from a departed agency, the popup platform replaced but never uninstalled.

Re-run the template measurements after every theme release and every app install, automatically if your pipeline allows it. Performance decays by addition, one reasonable feature at a time, and the budget's job is to make each addition argue its case at the door.

## Related reading

For the background behind “Theme performance budgets: a step-by-step that follows how practitioners actually do it”, these earlier guides help: [Box-Free Label-Free Returns: What the QR Code Drop-Off Changes in Your Cost Stack](https://returnsift.com/blog/2026-11-24-box-free-label-free-qr-code-returns-cost.md), [Returnless Refunds: Run the Threshold Math Before You Offer Them](https://returnsift.com/blog/2026-11-24-returnless-refund-threshold-math-small-orders.md), and [Box-Free Label-Free Returns: What the QR Code Drop-Off Changes in Your Cost Stack](https://returnsift.com/blog/2026-11-23-box-free-label-free-qr-code-returns-cost.md).

## Frequently asked questions

### What is a performance budget for a theme?

Explicit caps per template, JavaScript weight, image weight, request counts, set to protect Core Web Vitals targets, and enforced in the release process so a breach blocks or escalates a deploy rather than being noticed months later.

### How should budgets be set?

From the targets backwards: INP under 200 milliseconds constrains the JavaScript a mid-range phone can handle; the LCP element's needs set the image budget per template. Measure the current state first, per template, on throttled mobile profiles.

### Who owns the performance budget?

A named owner with authority at release time. Third-party apps and features draw on the same budget, so the register of scripts, weights, and earnings needs one person empowered to say no or to trade.

### How often should budgets be re-checked?

After every theme release and app install, plus a quarterly audit of third parties. Performance decays by accumulation, one reasonable addition at a time.
