Re:Custom Properties as State
by bawolff on Saturday January 09, 2021 @12:31AM
(#25697570)
True, but you still cant do first paint until all css is loaded, and for people with fast connections, the latency of the extra roundtrip matters more than the size of the file downloaded (within reason)
[ Parent
| on HN ]
An alternative would be keeping theme state in JS as suggested at the end of the article which improves the cache-ability of the css file as themes change.