• Thorry84@feddit.nl
    link
    fedilink
    arrow-up
    1
    ·
    2 months ago

    How is the size difference after gzip compression? Probably pretty much the same, but I wonder how large the difference is then. Since a lot of folk make sure the contents is gzipped when served to the user.

    • Olissipo@programming.dev
      link
      fedilink
      arrow-up
      0
      ·
      2 months ago

      Even using the highest compression levels, barely any difference. Not worth it

      If I understand correctly gzip, brotli and similar are best used to compress text.

      Font files also shouldn’t be compressed. A TTF file compresses a bit, but a WOFF2 file will be even smaller than that (and WOFF2 also doesn’t compress well). So might as well use WOFF/WOFF2