‹ BackHN Continuity

Thread

Improving site performance by shipping more CSS

96 points · 72 comments · torutofu

  1. lloydatkinson · · focus · HN ↗
    Any time I see criticism of CSS in JS, and a move to CSS modules, I get sad they didn’t just do a bit more research. You can have both, while also not shipping any JS runtime for CSS in JS! And with TypeScript support.

    <a href="https:&#x2F;&#x2F;vanilla-extract.style&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vanilla-extract.style&#x2F;

    1. fgkramer · · focus · HN ↗
      At the cost of pretty bad build time performance when the application grows. We migrated a &gt;1M LOC codebase to CSS Modules from VE for a ~30% build time speed improvement and much better tree shaking on Next.js
Open on Hacker News to reply ↗

Unofficial Hacker News client; not affiliated with Y Combinator.