Published 2026-12-03
Theme performance budgets: a step-by-step that follows how practitioners actually do it
A performance budget is a store deciding, in advance and in numbers, how much page weight and JavaScript it will allow itself, then treating every app install and theme feature as a purchase against that budget. Stores without one do not stay fast by accident; they get slower by a series of individually reasonable additions, each approved by someone who never saw the total. The budget makes the total visible before the addition, which is the only moment it can be argued with cheaply.
Setting one is a half day of measurement followed by a lifetime of short arguments. Here is the half day.
Step one: measure the templates that carry revenue
Pick the product template, the collection template, and the homepage. Run each through a lab test on mobile settings, several runs, and record the medians: total page weight, JavaScript transferred and executed, LCP, and the interaction response on the buy interactions. Note the starting theme's own weight with apps disabled in a duplicate theme, because that baseline tells you what the theme costs versus what your additions cost.
A blank modern theme still ships meaningful JavaScript before you add a thing; knowing the floor stops you blaming apps for the theme's share and vice versa. Record everything in a dated log. The log is the budget's memory, and budgets without memory get renegotiated from scratch every quarter.
Step two: set numbers the store can actually keep
A workable starting budget for many stores: keep total transferred weight on the product page near or under roughly 1.5 to 2 megabytes on first load, JavaScript as low as your app stack honestly allows, and LCP under the 2.5 second good threshold at the 75th percentile in field data. Your numbers will differ by catalog and imagery; the point is they are written, dated, and tied to the metrics buyers feel, not to a vanity score.
Assign the budget an owner and a rule: any addition that pushes a template over budget must name what it removes or why the business case overrides, in the log. Overrides are allowed. Silent overrides are how budgets die.
Step three: audit the app stack against the budget
List every app embed and script on the product template and what it costs in weight and main thread time. You will find the usual suspects: multiple analytics, a popup, two social proof tools doing one job, a reviews widget loading on pages with no reviews. Consolidate duplicates, defer what is not needed for the first interaction, and remove what nobody can justify in one sentence.
Then make the budget part of buying: every new app trial starts with a before and after lab test on the product template, recorded in the log. Vendors respect stores that measure; more importantly, your future self inherits a store whose speed is a decision, not an accident of history.
Related reading on this site: Common personalization engines mistakes that waste money or cause problems, Common post-purchase upsells mistakes that waste money or cause problems, and Common checkout extensibility migration mistakes that waste money or cause problems. Each covers a neighbouring decision, and together they give the fuller picture.
Frequently asked questions
What numbers belong in a performance budget?
Page weight, JavaScript size and execution cost, and the field metrics buyers feel: LCP, INP, and CLS per template. Tie the budget to the Core Web Vitals good thresholds so it connects to something external.
How do we measure a theme's baseline?
Duplicate the theme, disable app embeds, and lab test the key templates on mobile settings. That baseline separates the theme's own cost from the cost of everything added to it.
Who should own the performance budget?
One named person, usually whoever owns the theme. The owner approves overrides and keeps the dated log. A budget owned by everyone is enforced by no one.
What happens when a needed app breaks the budget?
Record the override with its business case and look for weight to remove elsewhere. Budgets are for making trade offs visible, not for banning tools the business genuinely needs.