karai17 / lapis-chan

Image board software written in Lua using the Lapis web framework.
http://lapchan.moe
MIT License
92 stars 17 forks source link

Replace most CSS 6-digit hex colors for 3-digit equivalents #62

Closed PVNFU-28 closed 4 years ago

PVNFU-28 commented 4 years ago

"Some six-digit hex colors can be written using a three-digit shorthand. Three-digit shorthand is where you combine the duplicate digits from each color component into one."

RRGGBB = #RGB

000000 = #000

If done to every css file this will save some file size and bandwidth, this can't be done to values like #FC0456 or #FFCC91 though.

karai17 commented 4 years ago

I can understand where this is coming from, but over all I don't think saving a few bytes on an uncached request is worth the ambiguity, especially since it can only be applied to a few rules at most.

PVNFU-28 commented 4 years ago

It's fine but I don't think ther is ambiguity and when it comes to websites saving bandwidth is always nice for both the owner and users. But again, it's fine.