- Publicado em
- Tempo de leitura
- 4 min de leitura
Rebuilding this site with less
Why the time-travel theme came out, what stayed, and what the homepage weighs now.
The last version of this site had a theme: a lab notebook from a certain time-travel anime. Nixie tubes that showed your own “worldline”, a dithered portrait, a field of dithered smoke drifting behind every page, and a glitch that tore the page apart when you shifted worldlines.
It was a lot to look at, and most of it had nothing to do with why anyone opens a portfolio: to find out what I do, what I’ve shipped, and how to reach me. So I took the theme out. This is what stayed, what went, and what changed.
What stayed
The palette and the type. They were never the problem.
The whole site still runs on six colours. Every pair used for text clears WCAG AA, and the one that doesn’t (slate on ink) is only ever used for lines.
| Token | Hex | Used for | On ink |
|---|---|---|---|
| Ink | #101317 |
Background | — |
| Paper | #EDE6D8 |
Headings, primary text | 15.0 : 1 |
| Sand | #CDBFA4 |
Body copy | 10.3 : 1 |
| Muted slate | #7D8A99 |
Metadata, captions | 5.3 : 1 |
| Orange | #E0663A |
The one thing you should look at | 5.4 : 1 |
| Slate | #3B4756 |
Rules | 2.0 : 1 |
Type follows the same rule as before: my voice is serif, the interface is mono. Anything I’d say out loud is set in Newsreader; anything a machine would print — dates, labels, tags — is IBM Plex Mono.
What went
- The Nixie-tube meter, and the per-visitor worldline reading it kept in
localStorage. - The dithered smoke behind every page, drawn on a canvas in a web worker for as long as the page was open.
- The glitch that split the page into colour fringes on a worldline shift.
- The animated experience chart, the “send a message to the past” form and the console easter egg.
- The film grain and the warm light spilling across the background.
The orange is rarer now too. It marks the main button, link underlines, numbers and dates, and a short tick where each section starts. Nothing else.
What it weighs now
Here’s the homepage before and after, from two production builds:
| Homepage | Before | After |
|---|---|---|
| HTML | 67.5 KB (18.3 KB gzipped) | 41.9 KB (9.4 KB gzipped) |
| JavaScript | 13.6 KB in six files (7.2 KB gzipped) | 0.3 KB, inline |
| Portrait | 4.9 KB, inlined | 11–28 KB WebP |
The bytes matter less than what they were doing. Before, the homepage kept working long after it loaded: the smoke redrew every frame, the tubes flickered, the chart drifted as you scrolled. Now the only script on the homepage updates the local time once every 30 seconds. Across the whole site, two small scripts are left: that clock, and the copy-email button on the contact page.
The one number that went up is the portrait. A four-tone dither compresses to almost nothing; a real photo doesn’t. It’s still small — 11 KB at its base size, 28 KB on high-density screens — and it’s the only image above the fold. It’s toned down to the palette in CSS and goes back to full colour on hover.
Motion, kept small
There are two kinds of motion left, and both switch off when you ask your system for reduced motion.
Between pages, the browser does the work. Native cross-document View Transitions keep the header in place while the rest of the page fades up ten pixels:
@view-transition {
navigation: auto;
}
/* The header has its own view-transition-name, so only the page moves. */
::view-transition-old(root) {
animation: 120ms ease-in both vt-out;
}
::view-transition-new(root) {
animation: 300ms cubic-bezier(0.2, 0.7, 0.2, 1) 40ms both vt-in;
}
On load, the first few blocks of a page rise in 60 ms apart. That’s the whole animation budget.
The rest of the budget
None of this changed, because none of it was the problem:
- No client framework. Astro renders everything to static HTML.
- No render-blocking requests. CSS is inlined; fonts are self-hosted, subset to Latin, and use
font-display: swapwith metric-matched fallbacks, so nothing shifts when they arrive. - No client router. Page transitions are native, and links are prefetched with the Speculation Rules API on hover.
If you want to talk about any of this — or about making a large front-end faster — say hello.