• Olissipo@programming.dev
    link
    fedilink
    arrow-up
    6
    ·
    15 hours 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

    • vvvvv@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      11 hours ago

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

      Compression algos should be used on uncompressed data. Using them on already compressed data (most video, images, music formats) is generally useless.