Article · 15 min read
Adaptive serving based on network quality
Google Chrome team · web.dev (Google) Free Advanced
Instead of shipping the same heavy page to everyone, you can detect the connection and serve lighter images or defer non essential loads on slow links. This guide shows how using the effective connection type signal, with code. It is the practical route to one product that behaves well on both a fast and a 2G phone.
- Detect slow-2g, 2g, 3g, or 4g and adapt what you send
- Serve low resolution media and defer big downloads on weak links
- React when the connection changes rather than deciding once at load