Optimization Techniques · Glossary

    Compression (Brotli / Gzip)

    On this page
    Compression (Brotli / Gzip)

    TL;DR

    Compression is the encoding of text-based responses (HTML, CSS, JavaScript, JSON, SVG) using an algorithm such as Brotli or Gzip so that the server transmits a smaller payload that the browser decompresses on receipt.

    What is Compression (Brotli / Gzip)?

    Compression is the encoding of text-based responses (HTML, CSS, JavaScript, JSON, SVG) using an algorithm such as Brotli or Gzip so that the server transmits a smaller payload that the browser decompresses on receipt.

    Read our guide: Website speed optimization guide. Or work with us through our done-for-you website speed optimization services.

    How Compression (Brotli / Gzip) is Measured

    The Content-Encoding response header indicates which algorithm is in use, and Lighthouse audits 'Enable text compression'.

    Share

    Written by

    Matt Suffoletto

    Founder & CEO

    Sources

    Ready to Get Started?

    Get your site optimized in as little as 3 days. From $500.