Skip to content

React performance budgets: keeping marketing sites fast as they grow

Marketing sites gain weight quietly — one script, one animation library, one embed at a time. A performance budget turns speed into a rule rather than a hope.

Theo OkaforLead Frontend Engineer
Published
Updated
Reading time
1 min read
Bar chart of JavaScript bundle sizes under a budget line

React is a good fit for marketing sites that need rich interaction and a component system your team can reuse. It also makes it very easy to ship more JavaScript than a page needs.

What we budget

  • JavaScript per route — compressed size of the scripts required to render the page.
  • Largest Contentful Paint — measured in the field at the 75th percentile.
  • Third-party scripts — each one has an owner and a reason to exist.

Techniques that keep us inside the budget

Split by route. Each page loads only the code it needs. Admin tools and rarely used pages live in separate chunks.

Defer below-the-fold work. Charts, carousels and heavy visualisations load when they approach the viewport.

Prefer CSS for simple motion. Transitions and transforms are cheaper than JavaScript-driven animation, and respect reduced-motion preferences easily.

Measure every pull request. A bundle-size check in CI makes regressions visible at the moment they are introduced.

Budgets are a conversation

When a new feature would break the budget, the budget does not automatically win. It forces a decision: is this worth the cost, and what could we remove to pay for it?


Demo content seeded for development. Edit, replace or archive it from the admin.

More from the blog
Landing page wireframe with highlighted call to action

Growth Strategy2 min read

Landing page anatomy: what we test first

Not every test is worth running. These are the landing page elements that most often move conversion rate, in the order we test them.

Ines Carvalho

Want this applied to your growth?

Start a conversation