3 ms·
I had the opposite thought -- I bet the new color mixing will increase payload size. Which of these would you rather send over the wire? A) color-mix(in srgb
by ForkMeOnTinder 3y ago
I had the opposite thought -- I bet the new color mixing will increase payload size. Which of these would you rather send over the wire?
A) color-mix(in srgb, var(--primary-color), white 50%)
B) #abcdef
For me to give up scss, there needs to be a minifier that calculates colors ahead of time and emits them plain, the way scss does. (Maybe there already is, who knows)
- TylerE 3y agoDifference might well be a lot less than you think after compression. XML(like) things compress almost embarrassingly well.
- coev 3y agopostcss already does this https://preset-env.cssdb.org/blog/postcss-color-mix-function/ https://preset-env.cssdb.org/blog/postcss-color-mix-function...
- egeesin 3y ago[dead]
- qingcharles 3y agoThat will make zero difference to site performance. If I didn't have uBlock running, half the sites on the Internet have 100MB+ payloads now. You could save more than those 50 compressed bytes of text by just optimizing one image on your site :) I beat myself up about performance issues like that all the time and have to catch myself to go do something more useful instead.