
Key points
- Page weight is measured in bytes transferred over the network, after compression. Compare like with like when you measure.
- Images, JavaScript and fonts are the usual culprits. Find the heaviest files first and fix those.
- There is no universal ideal size. Set a budget based on your audience and keep new changes under it.
What page weight is
When a page loads, the browser downloads the HTML and then every file the HTML refers to. The sum of those downloads is the page weight. It is usually quoted as transfer size, meaning the bytes that actually crossed the network, which is smaller than the uncompressed file when compression is on.
Two numbers are often confused: transferred size (what was downloaded, including headers) and resource size (the file after decompression). Use transferred size for network cost, and note that a repeat visit may transfer far less because of caching.
Why it matters
- Speed: bytes must arrive before the page can use them. On slow or busy mobile connections, big files delay Largest Contentful Paint and everything after it.
- Cost to visitors: many people pay for data or have limited allowances.
- Energy: transferring data uses electricity in data centres, networks and devices, which is why weight is part of website carbon estimates.
- Processing: heavy JavaScript costs time to download and to run, which hurts interaction responsiveness.
How to measure it
- Run the address through the page weight checker. It lists the files a page references, their sizes, render-blocking resources and anything over 300 KB.
- In Chrome DevTools, open the Network tab, tick Disable cache, reload and read the totals at the bottom. Sort by Size to see the biggest files.
- Look at the breakdown by type. If images are half the weight, start there.
A lab measurement shows the page as loaded with an empty cache and no interaction. Pages that load more content when you scroll or accept a cookie banner will weigh more in real use.
How to reduce it
Images
- Resize images to the size they are actually shown at, instead of uploading a 4000-pixel original.
- Use modern formats such as WebP or AVIF where supported, and compress JPEGs sensibly.
- Serve responsive sizes with
srcsetso phones do not download desktop images. - Lazy-load images below the first screen, but not the main image at the top. Check yours with the image checker.
JavaScript and CSS
- Remove libraries and plugins you no longer use. Every script adds download and processing time.
- Defer or delay third-party scripts such as chat widgets, tag managers and video embeds until they are needed.
- Minify files and make sure they are compressed with Brotli or gzip.
Fonts
- Use WOFF2, load only the weights and character sets you use, and keep the number of font files low.
Video and embeds
- Do not autoplay large videos. Show a poster image and load the player when someone presses play.
Caching
- Give static files a long cache lifetime so repeat visits download almost nothing. See compression and caching.
Set a performance budget
Pick a target for your key pages, such as a maximum total weight or a limit per resource type, and check it when you add features. The right number depends on your visitors' devices and networks, so start from what your page weighs now and work down. Measure again after each change to confirm it helped.
To see the energy side of the same data, try the website carbon calculator.
FAQ
How big should a web page be?
There is no single correct size. Smaller is better, and the right budget depends on your audience, their connections and what the page must do. Start by trimming the heaviest files and avoid growth over time.
What is the difference between transfer size and resource size?
Transfer size is the bytes downloaded over the network, usually compressed. Resource size is the file after it is decompressed in the browser.
Which files usually weigh the most?
Images, JavaScript bundles, fonts and video. A page weight report sorted by size shows which apply to you.
Does page weight affect SEO?
Not directly. It affects speed and the Core Web Vitals, which are part of Google's page experience signals, and it affects whether visitors wait or leave.
Why is the weight different between tools?
Tools differ in what they count: HTML only or all resources, compressed or not, with or without scripts that load later. Compare numbers from the same tool over time.