GitHub drops CSS-in-JS, and Mock Service Worker 3.0
Also: the requests server.close() drops, CSS mixins in Chromium, a Waline XSS
Today's theme is work moving out of the runtime. GitHub moved its styles to build time and says it cut server render time by 55%.
The main thing

GitHub moves github.com off CSS-in-JS. InfoQ covers GitHub's write-up of a three-year migration from styled-components to CSS Modules across github.com and its Primer design system. GitHub reports a 55% cut in server-side rendering time and 25% faster component initialisation.
The trigger was scale. In 2023, component counts on some pages started to explode, and page loads, server render times and style update costs grew with them. CSS Modules kept native CSS and co-located styles but removed runtime work on client and server.
The library was the easy half. Each Primer component got a CSS Modules variant behind a feature flag, checked for parity with visual regression tests, then rolled out to the Primer team, GitHub staff and finally everyone. Primer was done by December 2024.
The weird part is the long tail. About 7,760 usages of the sx prop, the de facto styling standard for years, were spread across github.com. A transitional @primer/styled-react package kept sx working against migrated components.
A rotation of eight engineers cleared 6,419 props in six months, for per-page SSR gains between 3% and 22%. The final 895 took two engineers three weeks, leaning heavily on Copilot coding agents. Repetitive, pattern-shaped cleanup is where those agents pay off.
Hacker News wasn't unanimous, per InfoQ. One commenter reported 30% faster builds and better tree shaking after a similar move on a Next.js codebase over 1M lines.
Others pushed back. One said hashed class names make ad-blockers, custom CSS and extensions harder to build. Another noted CSS-in-JS can be zero-runtime without Modules.
GitHub isn't alone: Linear finished a 1,000-PR move from styled-components to StyleX. If you render React on the server with runtime CSS-in-JS, read the Primer React v38 release notes and its migration guide, then measure your own render times before committing to a migration this long.
Quick bits

Mock Service Worker 3.0 goes ESM-only. Per InfoQ, MSW 3.0 also requires Node.js 22 or later and shrinks the package from 416KB to 234KB. It adds GraphQL subscriptions, protocol-specific entrypoints and an experimental defineNetwork API.
In Node, interception now works at the TCP and TLS level. That has a cost: some users report test failures from OPTIONS preflight requests MSW now catches. Budget time for those before you bump it in CI.
CSS mixins are close to shipping in Chromium. Patrick Brosset says his team at Microsoft is implementing native mixins in Chromium and getting ready to ship. For now they sit behind the Experimental Web Platform features flag.
You define one with @mixin --name and use it with @apply. A mixin holds any number of declarations and nested rules, takes typed parameters with defaults, and can contain @media rules.
Servo 0.8.0 adds video captions and inert content. October's release spans 588 commits, a record for the project. Servo now renders captions over <video> and adds :focus-visible, the beforeinput event, inert trees and CloseWatcher. Flutter web content no longer hangs after a typed-array performance fix. The team wants reports on how real sites run, so it's a cheap extra engine to try.
Vercel now bills existing Pro teams for Standard builds. Existing Pro teams no longer get an included Standard build slot. Standard builds cost $0.014 per build minute, your monthly usage credit applies, and billing covers every project on the team. Check build minutes on the Usage page before the invoice does it for you.
Try this

What server.close() misses in Node.js graceful shutdown. This dev.to post measures the standard SIGTERM handler: call server.close(), wait, exit. The author sent 200 requests a second at node:http, Express, Fastify and Hono servers, sent SIGTERM mid-flight and counted failures. server.close() saved every in-flight request, and that's all it reliably saved.
The gap is new requests. With 1000 ms of load balancer lag, a keep-alive client saw 7 to 12 failures. A client opening a fresh connection per request failed almost every time, because close() refuses new connections. Since Node 19, http.globalAgent keeps connections alive by default, so your test may be the forgiving one.
The author's recipe: pause longer than your measured load balancer lag, send Connection: close while draining, start node in exec form with a SIGTERM handler or --init, and test with both kinds of client. Fastify's own close() failed all 200 new requests until a 1500 ms pause went in front of it.
Patch check
@waline/client has a stored XSS that fires on moderators (CVE-2026-64670, rated critical). The comment editor renders its Markdown preview with marked and injects it via v-html, with no sanitizer. Editing seeds the editor with the comment's raw body, so an admin who clicks Edit on an attacker's comment runs that HTML in their own session.
The commenter needs no account. The excerpt we have doesn't name a patched version, so check the advisory if you embed Waline comments.
Run your shutdown test with a fresh-connection client before a deploy runs it for you.