S
← All writing

Getting a Personal Website Under 100 KB: My Performance Checklist

Most personal sites are far heavier than they need to be. Here's the checklist I use to keep pages small and fast, even on a patchy mobile connection halfway up a mountain.

SStalin K.4 min read
A laptop screen showing lines of colorful code in a dark editor

I spend a lot of time on bad internet. Café Wi-Fi shared by forty people, hotspots in moving vehicles, guesthouses where the router lives in a different building. It's made me a little obsessive about page weight.

My rule for small side projects: a typical page should load in under 100 KB before images. That's HTML, CSS, JavaScript, and fonts combined. It sounds strict, but it's very doable once you know where the weight hides.

Here's my checklist. (And yes, at the end I'll confess how this site measures up.)

1. Measure first

You can't fix what you haven't measured. Open your browser's developer tools, go to the Network tab, disable the cache, and reload. Look at the total transferred size and sort by size.

I'm always surprised by what turns up at the top. Last time it was a 180 KB icon font, loaded to display exactly four icons.

2. Question every script

JavaScript is usually the heaviest part of a page, and the most expensive one too, because the browser has to download it, parse it, and run it.

For each script, ask:

  • Does this page need it at all?
  • Could it load only on the pages that use it?
  • Could it load after the page is usable?

For a blog, the honest answer is usually that you need very little JavaScript. A theme toggle, maybe. Everything else can be plain HTML.

3. Be careful with web fonts

Fonts are lovely and sneakily heavy. A few things that help:

  • Use fewer weights. Regular and bold is usually enough. Every extra weight is another file.
  • Use modern formats. WOFF2 is much smaller than older formats.
  • Subset if you can. If your site is in English, you don't need every character in every language.
  • Show text immediately. Let the browser use a fallback font while the custom one loads, instead of showing blank text.
@font-face {
  font-family: "MySerif";
  src: url("/fonts/my-serif.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

4. Images: right size, right format, right time

Images aren't in my 100 KB budget, but they're usually the biggest thing on the page, so they still get attention:

  • Resize before you upload. A 4000-pixel photo displayed at 800 pixels is wasting everyone's data.
  • Use modern formats like WebP or AVIF, with a fallback if you need one.
  • Lazy-load anything below the fold, so it only downloads when the reader scrolls near it.
  • Always set width and height, so the page doesn't jump around as images load.
<img src="/images/van.webp" alt="A yellow van on a desert road"
     width="800" height="450" loading="lazy" />

5. Drop the third-party extras

Embedded social widgets, chat bubbles, and comment systems can each pull in hundreds of kilobytes from other servers. Often you can replace them with a plain link. "Discuss this on…" works just as well as a full embedded widget, and it doesn't track your readers.

6. Let the server help

Compression and caching are free speed:

  • Make sure text files are served compressed
  • Give static files like CSS, fonts, and images long cache lifetimes
  • Serve from a CDN if you can, so the files are physically closer to the reader

If you're using a static host, most of this is already on by default. It's worth checking anyway.

Confession: this site doesn't pass (yet)

While writing this post, I ran my own checklist against this blog. A typical post comes in at around 420 KB before the cover image. Ouch.

The breakdown was instructive:

  • About half is fonts. Three font files, including one large display font. Step 3 is clearly my next weekend project.
  • Most of the rest is framework JavaScript. When an AI agent rebuilt this site, we picked a full app framework for convenience. It's lovely to work with, but a blog doesn't need to ship that much code to show you some text.
  • The HTML and CSS are tiny. About 23 KB combined. The actual content was never the problem.

The good news is that the text still appears first, so on a slow connection you can start reading while everything else catches up. But I'll be trimming the fonts and looking hard at how much JavaScript a page of writing really needs. I'll report back.

That's the real goal anyway. Not a perfect score in a testing tool, but a page that respects the reader's time and data, wherever they happen to be reading it.

Keep reading