A 131 KB variable font cost my home page 600 ms of LCP, for headings in one weight. A static file fixed that. Fallbacks measured for each weight and style keep the text still, almost everywhere.
siegb.dev
Software engineer writing to learn. Public notes on the things I'm figuring out.
- Website
- siegb.dev · all feeds from this site
- Feed URL
https://siegb.dev/rss.xml
Read it in your FeedListing reader
Or add to: Feedly Inoreader Raw feed
Latest posts
-
One Font Weight, and a Fallback That Fits
-
Why My OG Images Are Drawn Before the Build
Astro's Cloudflare adapter prerenders pages inside the Workers runtime, where resvg's native binary won't bundle and Satori's WebAssembly won't compile. So a Bun script draws every link preview before the build starts.
-
systemd Units in Plain English
Every service on a modern Linux box is a unit file. What the three sections mean, why enable and start are different verbs, and the four commands that cover most days.
-
Local Postgres: Homebrew or Docker?
I ran Postgres from Homebrew for years. Here's the one compose file that replaced it for projects, what a volume actually is, and the one letter that decides whether your data survives.
-
Indexes in Plain English
What an index is, what it costs, and how to read the two words in EXPLAIN that tell you whether Postgres used it, shown on half a million workout log rows.
-
Keys and Types the Database Can Actually Check
My status columns were text with a TypeScript union on top, and my ids came in three kinds. What Postgres enforces, what it only pretends to, and what I changed.
-
What Should Disappear When a User Is Deleted?
Every foreign key forces a decision about deletion. I went through MetaMove's tables one by one: cascade, restrict, or set null, and where none of them is the right answer.
-
My Claude Code Status Line Is a Mod Now
My status line was a bash script that printed a line of text. Now it's a Claude Code mod with live gauges. What a mod is, how to build a small one, and what tripped me up.
-
One Table Doing Two Jobs
member_assignments was my roster and my plan assignment at the same time. Two facts in one row gave the database two ways to be wrong, and a copy-pasted twin table made it worse.
-
My Junction Table Had an Id and No Foreign Keys
Auditing one table in my fitness app taught me when a many-to-many table deserves its own id, why Drizzle relations are not constraints, and what rule the table actually needed.
-
My Blog Was 672 Pixels Wide on a 430-Pixel Phone
Every paragraph in my posts wrapped off-screen on mobile. The code block looked guilty, overflow-x: clip couldn't help, and the real cause was one auto margin on a flex item.