4 ms·
Can somebody explain how this approach affects the style caching by the browser? It seems that this will just throw away all the caching optimizations built aro
by juandazapata 10y ago
Can somebody explain how this approach affects the style caching by the browser? It seems that this will just throw away all the caching optimizations built around that.
- pygy_ 10y agoIt is replaced by script caching. Loading the styles from JS rather than CSS is a bit slower, but not much.
- juandazapata 10y agoI mean more like the AST behind parsing/rendering the styling rules, not caching the downloaded file.
- pygy_ 10y agoI didn't know it was a thing... Some CSS-in-JS libs support isomorphic apps, but I don't know how well they take advantage of the caching abilities of browsers.