
vedant
on August 27, 2026
2 min read
so i wanted pages on eva to show up faster. the two numbers i cared about are how quickly something first appears on screen and how quickly the main content finishes showing. both were 396 ms. a tool called stylex claimed it could shrink the styling file, the file that tells the browser how everything looks, so i looked at it.
i didn't want to rewrite the whole app just to find out, so i measured first. only about 7% of the styling was used when the page first loaded, which made stylex look like an easy win. but when i stripped out the styling tool we already use (tailwind) from the landing page to see the best case, it only saved 1.4 KB. most of that styling was already shared across the app, so there wasn't much to win back.
i still tried it properly on the landing page. it looked right, but the styling file got bigger, from 34.9 KB to 39.0 KB, the code on that page grew by 31%, and the page didn't get any faster.
so for anyone using eva nothing changes, cos i'm not switching. the thing actually slowing pages down is about 21 MB of code, not a 35 KB styling file.
so I looked at StyleX cos I wanted better FCP and LCP, and a smaller CSS bundle. I didn't want to migrate the whole app to find out, so I measured first.
this was on Eva. baseline was a Vite build plus Lighthouse. total CSS came in at 35 KB gzipped, FCP and LCP were 396 ms, and Chrome Coverage said only about 7% of that CSS was used at first paint. that 7% is the kind of number that makes StyleX look like an easy win.
so I did a ceiling check before writing any of it. drop Tailwind on the landing page and see what you even get. that saved 1.4 KB gzipped. dropping it off the whole main app tree saved 1.5 KB. so the upside was already tiny.
I still ran a real pilot on the landing page only, 21 files and about 1,545 classes. it rendered correctly. CSS went 34.9 KB gzipped to 39.0. JS on that route went up 6 KB gzipped, which is +31%. FCP and LCP didn't move, still around 360 to 400 ms.
Tailwind's atomic classes are already shared across the app, so StyleX had almost nothing to reclaim and then it added its own private atoms on top. I was squeezing a 35 KB CSS file while the real FCP/LCP lever is about 21 MB of JS.
StyleX is a net loss here. I'm not migrating. if the pilot commits are still around, revert them.
Sign in to join the conversation