2 ms·
tl;dr: deduplication processing for CSS speeds CSS compilation and produces smaller file sizes. Cool! The article only has compilation performance tests, and
by doublerebel 10y ago
tl;dr: deduplication processing for CSS speeds CSS compilation and produces smaller file sizes. Cool!
The article only has compilation performance tests, and there's a small mention in the docs: How does Styletron affect render speed in the browsers?
Also, what tool are you using to convert existing CSS to JS objects?
- rtsao 10y agoI actually wrote a separate benchmark suite [1] that uses Paul Irish's pwmetrics [2], so using real Chrome to check render performance. From those numbers, Styletron performed really well in terms of time to first paint and time to first meaningful paint. But I didn't include it in the blog post because I wasn't sure how best to separate the transfer time factor (pwmetrics is set up to throttle network speed) since Styletron critical CSS was so much smaller. [1] https://github.com/rtsao/styletron/tree/master/packages/benchmarks https://github.com/rtsao/styletron/tree/master/packages/benc... [2] https://github.com/paulirish/pwmetrics https://github.com/paulirish/pwmetrics