PageSpeed Matters PageSpeed Matters
    See Pricing
    See Pricing

    Optimization Techniques · Glossary

    Compression (Brotli / Gzip)

    Matt Suffoletto

    Founder & CEOPublished

    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.

    Learn more in our how to improve compression guide, or work with us through our done-for-you speed optimization service.

    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.