Hacker News new | ask | show | jobs
by ForkMeOnTinder 908 days 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)
3 comments

That 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.

Difference might well be a lot less than you think after compression. XML(like) things compress almost embarrassingly well.