Home  ›  Blog

How We Achieve Sub-0.8s Page Speeds on the Edge

Sub-0.8s page speeds on the edge
A fast site starts with less code, not more optimisation.

Most speed advice starts in the wrong place. It hands you a list of tricks — compress this, defer that, minify the other — before anyone has measured what is actually slow. A page can feel slow for half a dozen different reasons, and the fix for each one is different: a font file holding up the text needs a different fix than a page shipping a whole JavaScript framework to show a paragraph and a button. So we start every speed job the same way: measure first, then touch the code, using numbers we measured on our own blog.

One thing to be clear about up front. Sub-0.8 seconds is the target we build to, not a score we claim to have measured. We have no PageSpeed API key, and we do not quote PageSpeed scores anywhere on this site. What we do measure, with tools anyone can run, is page weight — how many kilobytes a page downloads — and how long each part of the load takes.

Start by measuring, not guessing

The first measurement costs nothing and takes about ten seconds — run curl against the page and ask it to report the timing of each stage:

curl -o /dev/null -s -w "DNS: %{time_namelookup}s\nConnect: %{time_connect}s\nTTFB: %{time_starttransfer}s\nTotal: %{time_total}s\nSize: %{size_download} bytes\n" https://metaprime.online/blog/

Read the output from the bottom up. The total time is what the visitor feels, but the lines above it tell you where that time went. Slow DNS and connect means the network path is the problem. A slow time to first byte means the server is doing too much work before it answers — a database query, a template render, a function running on every visit. A quick first byte with a long total means the page itself is heavy. Each answer points at a different fix, which is why guessing is so wasteful. Run the command three times and take the middle result.

Then measure the weight. Open the page, open developer tools, go to the Network tab, reload, and look at the totals: how many requests, and how many kilobytes transferred. Sort by size, largest first. On almost every slow site, the top five entries tell the whole story — usually two or three images and a font file. Write those numbers down before you change anything — without a before number, you will never know whether a change helped.

That is what we did on this blog in November 2026, when the listing page felt heavy. The listing was 4,575 KB — more than four and a half megabytes for a page of article cards — and 99.3% of that weight was images. The speed article itself was 764 KB. Those two numbers set the job: not a server problem and not a code problem, but an image problem, and everything else came second to fixing that.

The levers, in the order we pull them

Cut the framework out entirely

Our sites are plain HTML, one CSS file and one JavaScript file. No framework to download, no build step to wait for, no layer of code between the visitor and the content. A page is a file, and the browser reads it directly. That sounds like a small choice, but it is the single biggest weight decision in a project: a framework ships its own code on every page whether the page needs it or not, and the page pays for it before a single word appears. Removing it changes nothing visitors can see, but it removes a whole class of download, parsing and execution time in one move — and editing a section later means editing a file, not rebuilding an application.

Serve static files from the edge

Every page is a static file served from Cloudflare's edge network, so the visitor downloads it from a location near them instead of one distant server. No database query on each visit, no server-side code to run before the page can be sent — the file is ready before the visitor asks for it. That is why the time-to-first-byte line in the curl output stays short. If your timings show a slow first byte while the total size is small, the page is probably being generated on every visit instead of served ready-made.

A fast website loading on a laptop beside a stopwatch
Less to download, less to wait for.

Fix the images — they are almost always the problem

Images are the heaviest part of most pages, and they were the heaviest part of ours by a long way. Our fix had four parts. First, we resized the files to the size they are shown at: the blog images had been uploaded at 1920 by 1280 pixels and displayed in cards about 168 pixels wide, and the hero banner was 2048 by 1152. We resized them to 1120 by 747, and the banner to 1120 by 630. Second, we capped article images at 560 pixels wide in the CSS. Third, the first three cards load eagerly, because they are on screen immediately, and every image after that loads lazily, only when the visitor scrolls to it. Fourth, images carry explicit width and height attributes and decoding set to async, so the browser can lay the page out without waiting for the picture.

Here is what that measured on our own blog, before and after:

PageBeforeAfterChange
Blog listing4,575 KB1,111 KB−76%
Speed article page764 KB207 KB−73%
All blog images, total8.32 MB1.96 MB−76%

Three quarters of the weight gone, from resizing and lazy loading alone, with no visible change to the design. If your own Network tab shows images at the top of the size list, start here.

Stop fonts from blocking the text

Fonts are the classic hidden delay: a page that waits for a font file before showing any text feels slow even when the server is fast. Our font stylesheet loads with media set to print and switches to all once it has loaded, so it never blocks the first paint — the page appears first in a system font and the brand font swaps in when it arrives. We also preconnect to the font server, and we keep the font families to two: Inter for body text and Poppins for headings. Every extra font family is another file on the critical path.

Keep the shared files small, and cache them once

One stylesheet and one script serve the whole site, and the browser caches them after the first page, so the second page a visitor opens does not download them again — each page only carries its own content. We keep those shared files small on purpose: only the rules and the behaviour the site actually uses, nothing loaded just in case. Short HTML files with nothing duplicated across pages mean less to download.

Check it on every deploy, the same way every time

Speed is checked the same way we check everything else: after every change, before it goes live. The page must open, the links must work, the calculator must add up, the 404 page must serve, and the weight must look right. We re-run the same measurements and compare them against the numbers we wrote down last time. If a change makes a page heavier, we see it and fix it before visitors do. A new image uploaded at full camera resolution is the usual culprit.

That routine is what keeps the target honest. Sub-0.8 seconds is a build target — a standard we design to, by keeping pages light, static and close to the visitor. It is not a trophy we print on the site, because the number a visitor actually experiences depends on their connection and their device, and we cannot measure those from here. What we can promise is the work behind it: measure first, cut the framework, serve static files from the edge, fix the images, unblock the fonts, and check the weight on every deploy. If you want your website built this way, get an instant estimate, read about our speed optimisation service, or talk to us on WhatsApp.