Web · Performance

This site: from 27.1 MB to 1.7 MB of HTML, without changing a pixel

How this portfolio is built, why it stays static, and the detail of a performance pass verified screenshot by screenshot.

By 14 November 20263 min read
My role
Design, direction and verification
Period
November 2026
Project type
Personal project

In short

This portfolio is a static site in French and English. On 14 November 2026, a performance pass brought the HTML of the 96 pages the site then had from 27.1 MB down to 1.7 MB, without changing a pixel on screen. I built it with AI assistants: I direct, they produce, I verify.

27.1 → 1.7 MBof HTML across the 96 pages the site had at that date
≈ 123 → 5 KBfor a typical page, compressed
18before / after screenshots identical to the pixel

The problem

Every page carried the whole stylesheet (189 KB, including three base64-encoded fonts), the shared script and the full search index. A page weighed about 275 KB before loading a single image.

That choice makes generation simple: a page is a self-contained file. It has one flaw: nothing is cached from one page to the next. The visitor downloads the same fonts again on every click.

The technical reasoning

  1. Stay static. The content changes little. With no application server and no database, there is nothing to maintain in production and the page is served straight from the delivery network.
  2. Treat translation as data. The French pages are the source. A script produces the English version from a translation file, then generates hreflang links, sitemaps and the search index. The two languages cannot drift apart in structure.
  3. Move out what is shared. The stylesheet and the script become shared files, downloaded once and then cached. Fonts go back to being real files instead of base64 text, which is about a third heavier.
  4. Load the search index on demand. It is only downloaded if the visitor opens search.
  5. Verify by comparing images. An optimisation must change nothing on screen. Nine pages were captured before and after, on desktop and mobile, then compared pixel by pixel.

What was built

  • A build chain: French pages, a translation file, a localisation script, then an optimisation step.
  • Structured data on every page: person, page, breadcrumb, article or frequently asked questions as appropriate.
  • A strict content security policy: by default the site only loads its own files.

Checks and limits

Search, project filters, the video player and the mobile menu were tested in Chrome before and after, with the site’s security policy enabled. Every internal link was checked.

These measurements are about file weight. I publish no real-world speed score here and no effect on search rankings.

What next?

This study sets out a line of reasoning. The project page shows the result, and the other studies follow the same reading grid.

The next step

Your next challenge.
My next playground.

Let’s talk

Explore the site

View related project ↗Open video file ↗