JournalSpeed

How this site scores 99 to 100 on PageSpeed, and what it took

No tricks and no magic plug-in. A list of the plain decisions behind the studio's own site, and the one thing that nearly cost us.

A workshop wall hung with hand tools and clamps.

We sell fast, clean stores, so we hold our own site to the same standard. This is what Google's PageSpeed Insights reported for the home page, and the decisions that produced it.

Performance, accessibility, best practices and SEO all read 100 on both devices on that run. A later run gave 99 for performance on mobile, and the one after gave 100. Scores move by a point between runs, so we quote the range, 99 to 100, and the date.

The plain decisions behind it

  1. Pages are built ahead of time, not on every visit. A visitor receives finished HTML.
  2. One hand-written stylesheet, not a pile of theme and plug-in styles. There is less to download and less to untangle.
  3. Fonts are loaded the way the framework intends, so text appears without a jump.
  4. Every picture is resized and served in a modern format, with the width it needs and no more, and every picture that shows something has a description.
  5. Animation code loads after the first interaction, not before the first paint. An early version of the hero animation held the first paint back, so we moved it.
  6. Nothing is loaded from a third party before a visitor agrees to it. The analytics choice waits until the browser is idle, and the tool starts only after consent.

What nearly cost us

Google's report has a new preview category for how well an AI agent can read a page. We scored 2 out of 3, and the reason was our own cookie banner: we had given a dialog role to an element that does not allow it. A small fix put it right, and the next run read 3 out of 3. It is a good reminder that the small things you add last are the ones that cost the most.

What to take for your own store

  • Remove apps and scripts you no longer use before you buy a faster theme.
  • Load anything that is not needed for the first screen after the first screen.
  • Resize pictures to the space they fill.
  • Measure the live page, not your own phone, and measure more than once.
  • Write down the date of every figure you quote.

Problems this piece speaks to

Photograph from Unsplash.

Bring us the account that is stuck.

A real person reads every message and replies, usually within 6 hours. Remote, working across UK, EU and US Eastern hours from UTC+1.