Improving site performance by shipping more CSS
For a company that practically wrote the book on modern frontend engineering, GitHub admitting they spent years untangling styled-components and landed on plain stylesheets feels like a public confession. The performance numbers are nice, but what actually lands for me is the honesty: runtime CSS generation was a tax on every page load, and they finally said so out loud.
I've been on teams where the provider tree becomes the whole application. You spend more time debugging styled-components quirks than writing styles, and the hydration waterfall is just something you learn to live with. We normalized it because it was the modern way, even as the browser kept getting faster and the CSS we shipped kept getting heavier. GitHub shipping more CSS is the most pragmatic thing I've heard from a big engineering org in a while.
What I'd want to know next is how they kept developer experience from regressing. Plain stylesheets can get messy fast, and the tooling has a different kind of pain. But if a site as massive as github.com can cut runtime overhead by going back to basics, the rest of us should at least be asking what we're really paying for.
