Why weight matters
Every kilobyte is downloaded by every visitor. Heavy pages are slow on mobile networks and cost your visitors data. Slow pages also lose visitors and rank worse, so page weight is one of the cheapest things to improve.
What makes a page heavy
- Images. JPEG, PNG or GIF files over 100 KB that a modern format such as WebP or AVIF would shrink, and images larger than the size they are displayed at.
- JavaScript. More than 500 KB in total, often from libraries and tags nobody uses any more.
- No compression. Text files over 1 KB (HTML, CSS, JavaScript) should be compressed with gzip or Brotli.
- No caching. Static files should be cacheable, and files behind a CDN should be served from its cache.
- Render-blocking scripts. Scripts in
<head>withoutasyncordeferstop the page from appearing until they have loaded. - Too many requests. More than 80 requests per page.
Reduce it
- Resize images to the size they are displayed at, convert them to WebP or AVIF and lazy-load those below the fold with
loading="lazy". - Enable gzip or Brotli in the web server or CDN for HTML, CSS, JavaScript, JSON and SVG.
- Add
deferto scripts in<head>, or move them to the end of<body>. - Remove unused libraries and split the bundle so each page only loads what it needs.
Set a budget
The page weight check downloads your page and up to 50 files it references, adds up their size and fails above your budget, 3,000 KB by default. It also warns about the problems above and about a page that grew by 25% and at least 100 KB since the previous run, so a heavy new image is caught the day it ships.