Performance work that ignores the invoice is half the job.
What this is
Fast, and cheap to keep fast.
A page can be quick and still cost more every month than it needs to. The two problems have the same cause, work being done repeatedly that could be done once, and they are usually solved by the same change, which is why we treat them as one engagement rather than two.
The largest wins are almost never micro-optimisations. They are structural: what renders on the server versus the client, what is cached and for how long, and whether images are being transformed twice by two different services that both bill for it. We have found a site paying a metered image optimiser to re-process pictures a content CDN had already resized, at a cost that dwarfed anything a code change would have saved.
For African audiences this is not a scoreboard exercise. Pages are read on mobile data, on devices several generations behind the ones sites are tested on, and a heavy homepage is a paywall nobody agreed to.
The image case is the clearest. A content platform with its own CDN already resizes, crops and negotiates format from URL parameters. Pass those URLs through a metered optimiser and every variant is transformed a second time and billed, while the first transformation was included in a service you already pay for. The count is driven by distinct URLs multiplied by the widths in the srcset, not by visitors, which is why the bill grows with the site rather than the audience and why traffic can be flat while the invoice is not.
The fix is a custom loader that builds the URL the CDN understands, scaling the height with the width so a cropped image keeps its ratio across the srcset. Lazy loading, srcset generation and reserved layout space all survive. What is removed is only the second transformation.
Caching decides the rest. Which routes are static, which are rendered per request, and how long a cached page lives are decisions the framework leaves at defaults tuned for a developer on a fast machine. Left alone they produce a site that is quick in a demo and expensive in production. We set them per route, write down why, and re-measure against the same baseline so the claim is checkable.
What’s involved
- Rendering and caching strategy
- What is static, what is per-request, and what is revalidated, decided rather than defaulted.
- Image and asset pipelines
- One transformation, at one place, at the sizes actually served.
- Core Web Vitals
- Measured on real devices and connections, not a lab profile on office fibre.
- Infrastructure cost review
- What the metered services are actually billing for, and which of it is duplicated work.
How it usually goes
Measure
Field data and the bill, together. Neither is meaningful alone.
Find the structural cause
Usually one or two decisions, not fifty small ones.
Change and re-measure
Against the same baseline, so the claim is checkable.
Write down the budget
So the next feature has a number to stay under.
What we won’t do
- We will not quote a Lighthouse score as an outcome. It is an instrument, not a result.
- We will not optimise a page while ignoring what it costs to serve.

