Skip to content

How to reduce latency

Cache at the edge, preconnect, keep connections alive, compress, use HTTP/2 or /3.

Cutting latency that matters

  1. Edge caching

    Serve from the nearest CDN node. 150 ms → 10 ms.

  2. DNS preconnect

    <link rel="preconnect"> to third-party origins saves one RTT per origin.

  3. Keep-alive connections

    Reuse TCP+TLS. Never open a new connection per request.

  4. HTTP/2 or HTTP/3

    Multiplexing removes head-of-line blocking.

  5. Compress

    Brotli/Gzip reduce bytes, which reduces transmission time.

  6. Reduce hops

    Colocate origin near users. Avoid CDN bouncing back and forth.