32% faster, 27% more engaged
A responsive marketing site for desktop and mobile, made faster through caching and minification and fed by a GraphQL and Apollo data layer - page load times down 32%, user engagement up 27%.
The brief
A marketing site has one job: get a visitor from the first screen to the thing they came for, on whatever device they arrived on. So it was built responsive from the start and optimised for desktop and mobile as equals, not designed for one and squeezed onto the other.
It was also the first thing most people saw of the business, which turns speed and polish from nice-to-haves into the brief itself.
Where the time went
On a marketing site, load time is not a technical metric. It is the first impression, and most visitors decide before the page has finished arriving.
I cut page load times by 32% through caching and minification. Neither is clever. Both are the kind of work that gets deferred because nobody asks for it, and they are usually where the time is.
In practice that meant shipping less, and shipping it once: minified assets so every page weighed less, and caching so a returning visitor, or the next page in a visit, did not pay for the same files twice. The 32% is load time on the same pages, before and after.
The data layer
I implemented a GraphQL and Apollo data-fetching layer. The reason to want one is that a component asks for exactly the data it renders, and the cache answers a repeat request without another round trip - so the shape of the data follows the shape of the page, rather than the other way round.
It also gave the team one place to look. Each component declares the data it needs next to the markup that uses it, so changing a page and changing what it fetches are the same change, reviewed together.
Outcomes
- Page load times down 32%, through caching and minification.
- User engagement up 27%.
- A GraphQL and Apollo data-fetching layer under the site.
- Responsive across desktop and mobile.