# Improving site performance by shipping more CSS

DevFeed: [Improving site performance by shipping more CSS](<https://devfeed.tech/articles/improving-site-performance-by-shipping-more-css-60169.md>)

Original publisher: [Read original article](<https://github.blog/engineering/architecture-optimization/improving-site-performance-by-shipping-more-css/>)

Author: Josh Black

Published: 2026-09-25T15:00:00Z

Content type: article

Language: en

Sources: [GitHub Blog](<https://devfeed.tech/sources/github-engineering.md>), [GitHub Engineering](<https://devfeed.tech/sources/github.md>)

Topics: [CSS](<https://devfeed.tech/topics/css.md>), [CSS Modules](<https://devfeed.tech/topics/css-modules.md>), [GitHub](<https://devfeed.tech/topics/github.md>), [Design system](<https://devfeed.tech/topics/design-system.md>), [Server-side rendering](<https://devfeed.tech/topics/server-side-rendering.md>), [JavaScript](<https://devfeed.tech/topics/javascript.md>), [migration](<https://devfeed.tech/topics/migration.md>)

Tags: [architecture-optimization](<https://devfeed.tech/tags/architecture-optimization.md>), [automation](<https://devfeed.tech/tags/automation.md>), [css](<https://devfeed.tech/tags/css.md>), [css-in-js](<https://devfeed.tech/tags/css-in-js.md>), [design-system](<https://devfeed.tech/tags/design-system.md>), [design-systems](<https://devfeed.tech/tags/design-systems.md>), [engineering](<https://devfeed.tech/tags/engineering.md>), [github](<https://devfeed.tech/tags/github.md>), [js](<https://devfeed.tech/tags/js.md>), [migration](<https://devfeed.tech/tags/migration.md>), [performance](<https://devfeed.tech/tags/performance.md>), [performance-engineering](<https://devfeed.tech/tags/performance-engineering.md>), [primer](<https://devfeed.tech/tags/primer.md>), [scripting](<https://devfeed.tech/tags/scripting.md>), [server-side-rendering](<https://devfeed.tech/tags/server-side-rendering.md>), [software-engineer](<https://devfeed.tech/tags/software-engineer.md>), [user-experience](<https://devfeed.tech/tags/user-experience.md>)

## AI overview

GitHub's Primer team migrated components from CSS-in-JS to CSS Modules to address client-side style initialization, server-side rendering costs, and growing style-update overhead. CSS Modules preserved local class-name scoping while eliminating client and server runtime behavior by shipping stylesheets with the page HTML.

## Source excerpt

How we fully migrated github.com away from CSS-in-JS. The post Improving site performance by shipping more CSS appeared first on The GitHub Blog.