B · O · B · IBobi Bonchev

How We Built a Site That Scores 100/100 on PageSpeed

How We Built a Site That Scores 100/100 on PageSpeed

I have been doing SEO since 2004, and in that time I have seen page speed described as everything from “irrelevant” to “the most important ranking factor”. The truth sits in the middle. A fast site will not rank first on speed alone, but a slow one almost certainly holds you back. And people simply do not like waiting.

So when we rebuilt bobibonchev.com this autumn, I set a simple goal: the site should be fast by default, not fast after we bolt on three optimisation plugins. Here is what we did, step by step, using this very site as the case study.

First, an honest word about “100”

PageSpeed Insights and Lighthouse do not return the same number every time. The score depends on whether the page is cached, how busy the server is at that moment, the simulated mobile connection, and even which Google machine runs the test. Our pages score 100/100 in my tests, but if you run the test yourself on a cold cache, you might well see 97 or 99. That is not the test being fooled; it is how the test works.

So I pay more attention to the real metrics: how fast the main content appears (LCP), whether the layout jumps around while loading (CLS), and how quickly the page responds to a tap (INP). The 100 makes a nice screenshot. The metrics are what visitors actually feel.

1. A custom lightweight theme, no page builder

The biggest decision was not to use a page builder. Visual builders are convenient, but you pay for that convenience with a lot of CSS and JavaScript loaded on every page, whether you use it or not.

The theme, called “bobi”, was written from scratch and contains only what the site actually displays. We also switched off things WordPress adds by default that we do not need:

  • the emoji scripts and styles;
  • block editor styles, since our content is plain HTML;
  • embed scripts and the extra links in the head.

2. No jQuery

jQuery was a lifesaver fifteen years ago. Today browsers can do almost everything we used it for, without an extra library. jQuery is not loaded at all on the public site. The little JavaScript we need (the menu, the theme switch and similar) is written in plain JavaScript and inlined into the page.

3. CSS inlined in the page

The usual approach is to extract the “critical” CSS, inline it, and load the rest later. In our case the whole theme stylesheet is small enough that we minify it and inline all of it in the head. The browser does not need a separate request before it can paint. No render-blocking CSS file, no flash of unstyled content.

This only works because the theme is light. Inline 300 KB of CSS into every page and you will hurt yourself. The trick is not the technique; it is having very little code.

4. A self-hosted font: Sofia Sans

The font is one of my favourite details. We use Sofia Sans by Lettersoup, a Bulgarian type foundry, which handles both Cyrillic and Latin beautifully. Instead of loading it from a third-party service, we host it ourselves:

  • as WOFF2, subset to the characters we actually use;
  • with preload, so it starts downloading immediately;
  • with no requests to external domains that add DNS and connection time.

Bonus: the Bulgarian version of the site looks properly designed in Cyrillic, not like a Latin typeface with Cyrillic tacked on.

5. AVIF and WebP images in responsive sizes

Images are usually the heaviest part of any page. For the main photos we prepared several widths (for example 360, 640 and 900 pixels) in two formats, AVIF and WebP. The browser picks the smallest file it supports that fits its screen. A phone never downloads a desktop-sized photo.

Images inside articles decode asynchronously, and anything below the fold waits until it is needed.

6. Analytics loads later

This is our small trick. The Google Analytics script weighs around 170 KB, and there is no reason for it to compete with the first paint. So it loads on the visitor’s first interaction (scroll, tap, key press) or five seconds after the page has loaded, whichever comes first.

The event queue is created immediately, so no data is lost. The heavy file simply arrives once the page is already visible.

7. Caching and prerendering

Pages are served from a cache instead of being generated by WordPress on every visit. We also use the browser’s speculation rules: when a visitor hovers over a link, the next page can start preparing in advance. The result is a transition that feels close to instant.

How to check your own site

Do not take my word for it. If you want to see where your site stands, here is what I do:

  1. Run PageSpeed Insights two or three times in a row and look at the repeated results, not the first one.
  2. Test inner pages, not just the home page.
  3. Look at real-user field data (if Google has it for your site), because it matters more than the lab test.
  4. Open the browser developer tools and check which files load and how heavy they are.

What I learned

  • The fastest code is the code that does not exist. Most of the gains came from removing things, not adding them.
  • Optimisation plugins treat symptoms. If the theme is heavy, they only paper over it.
  • Speed is a discipline. Every new script, widget or pixel has to earn its place.
  • Watch real metrics, not just the number in the circle.

A 100/100 site is not a one-day achievement. It is the result of many small decisions not to add things you do not need.

Could your site do the same?

Not every site needs a custom theme; for many businesses a well-tuned WordPress install is plenty. But if speed is costing you rankings or orders, it is worth looking at what actually loads. That is part of my SEO services work, and for projects that need code written from scratch, see custom software development.

If you would like a second pair of eyes on your site’s speed, get in touch and I will tell you honestly what is worth fixing first.

Frequently asked questions

Does the site always score 100/100 on PageSpeed?

Not always. The score varies with caching, server load and test conditions, so on a cold cache you may see 97 or 99. Real metrics such as LCP, CLS and INP matter more.

Why not use a page builder?

Visual builders load a lot of CSS and JavaScript on every page. A custom theme contains only what the site actually displays.

How is the Sofia Sans font loaded?

From our own server, as a subset WOFF2 file with preload, with no requests to third-party font services.

Is analytics data lost when the script loads later?

No. The event queue is created immediately, and the script itself loads on the visitor's first interaction or five seconds after page load.

Does every site need a custom theme to be fast?

No. For many businesses a well-optimised WordPress site is enough. A custom theme makes sense when speed is genuinely costing rankings or orders.

B · O · B · I

Bobi Bonchev

QR code to this card

Scan to open this card · bobibonchev.com