Skip to content
pagespeed.tools

Page size checker

Measure the size of a page's HTML and count the scripts, stylesheets and images it asks the browser to load.

No address to hand? Try it on github.com

Checking page size…

What makes a page heavy

The HTML itself is usually small. The weight comes from what it references: scripts, stylesheets, images, fonts and embeds. Each one is another request, and some of them stop the page from showing until they have loaded.

Render-blocking files

A stylesheet in the page head, or a script there without async or defer, makes the browser wait before it draws anything. Keep the styles needed for the first screen small, and mark scripts as defer unless they truly have to run first.

Images and layout shift

An image without width and height leaves the browser unable to reserve space for it, so the page jumps when it arrives. Add both attributes, and add loading="lazy" to images further down the page so they do not compete with the first screen.

Common questions

Does this count every file the page loads?
It counts what the HTML references. Files that scripts add afterwards, such as trackers and widgets, are not included, so the real total is often higher.
What is a good HTML size?
Under 100 KB compressed is comfortable for most pages. Much more usually means large amounts of inline script, style or data that could be loaded separately.

Learn more

All guides
See all 14 tools