Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I'm all for good compression but tbh it's starting to get ridiculous.

HTML/CSS/JS: prefer brotli, then gzip, then identity (no compression), using the Accept-Encoding header.

Pictures: convert them all to AVIF and WEBP. Keep JPEG around as well for backward compatibility

Other bitmap/non-scalable images: I guess still use PNG unless I missed something

And now SVG, used to be compressible with brotli but soon we'll have to export it to IconVG.

What's next, changing the transport to UDP? Hah!

Oh wait...



There's not a single perfect format for everything, so why not?


I understand there might be specificities for encoding but there coukd be some efforts to share some compression. By example png use gzip, we could let the browser sort it out and let it use brotli?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: