Menu

Post image 1
Post image 2
Post image 3
Post image 4
1 / 4
0

Improving site performance by shipping more CSS

Hacker News·about 16 hours ago
#SegQo8r2
Reading 0:00
15s threshold

The Primer Design System powers many of the experiences you see on GitHub today. From buttons to banners to breadcrumbs, these foundational components are required to be accessible, flexible, and performant across a wide variety of scenarios. Back in 2023, the number of components on certain pages began to explode. This led to several performance-related challenges with our existing CSS-in-JS solution: Initial page loads took longer due to styles being initialized on the client Server-side rendering performance declined as style collection shifted from the client Updates to styles grew out of control as component count grew on a page It became clear that the Primer team needed to address the issue at the source. We needed to find an alternative that would completely avoid the client and server costs that we were seeing with our current solution. Most importantly, any alternative we pick would need to work in a way that would avoid any breakage to GitHub during the migration.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.

Read More