TTFB, Page Size and DOM Size, Explained
What the numbers in a speed report actually mean, and which ones are worth worrying about.
Run any page through a speed test and you'll get a wall of numbers: TTFB, page size, DOM elements, compression. If you're not a developer, it's hard to know which ones matter. This guide explains the three that show up in our speed checker, what a good result looks like, and what you can actually do about a bad one.
The short version
- TTFB is how long your server takes to start answering. Google's web.dev guidance says 0.8 seconds or less is good.
- Googlebot only reads the first 2 MB of an HTML page, so very heavy pages can lose content in search.
- Compression (gzip or Brotli) often cuts HTML size by 70% or more, and it's usually a single setting.
- A very large DOM (thousands of HTML elements) makes pages slower to respond. Google's Lighthouse starts warning at about 800 elements.
- Speed is a real but modest ranking factor. The bigger win is that people stay on fast pages.
Why speed is worth caring about
Speed matters in two places: with search engines and with people. The second one is bigger.
On the search side, Google uses page experience signals, including Core Web Vitals, as one of many ranking factors. It's a real factor but not a huge one. A slow page with the best answer will usually still beat a fast page with a weak one.
Speed also affects crawling, but mostly for big sites. If your server answers quickly and reliably, Google is willing to crawl more of your pages. If it's slow or throws errors, Google backs off. For a site with a few hundred pages, this rarely matters. For a site with hundreds of thousands, it can.
On the people side, it's simple: slow pages lose visitors, especially on phones over a mobile connection. If someone taps your result and stares at a blank screen, there's a good chance they hit back and choose someone else. I've had this conversation with clients more than once: a site can look great and still lose people because it takes too long to load. You can see where your page stands with the Server Speed & Page Weight Checker.
TTFB: how fast your server answers
Time to First Byte (TTFB) is the time between a browser asking for your page and the first bit of the response arriving. It's not the full load time. It's just how long it takes your server to start answering.
A few things happen before that first byte arrives: following any redirects, looking up your domain (DNS), setting up a secure connection, and your server building the page. Slow hosting, slow database queries and long redirect chains all show up here.
Google's web.dev guidance says most sites should aim for a TTFB of 0.8 seconds or less, as measured by real visitors. It's not one of the Core Web Vitals itself, but a slow TTFB makes a good loading score (LCP) much harder to hit.
Our Server Speed & Page Weight Checker measures TTFB from our server, not from a visitor's phone. That cuts out slow mobile networks, so we grade on a tighter scale: under 200 ms is great, and over 600 ms means your server itself is slow.
1) Put your site behind a CDN like Cloudflare so pages are served from a location near the visitor. 2) Turn on page caching so your server isn't rebuilding the same page on every visit. 3) Remove redirect chains. 4) If you're on very cheap shared hosting, moving to better hosting is often the biggest single improvement.
| TTFB (real visitors) | Google's rating | What it usually means |
|---|---|---|
| 0.8 s or less | Good | Your server and hosting are in decent shape. |
| 0.8 – 1.8 s | Needs improvement | Worth looking at caching, hosting or redirects. |
| Over 1.8 s | Poor | Visitors are waiting a long time before anything happens. |
Thresholds from web.dev. They describe what real visitors experience at the 75th percentile.
HTML size: how heavy your page is
HTML size is how big the main HTML file for your page is. It doesn't include images, fonts or separate script files, just the page's own code.
Most HTML files are small. They get heavy when site builders and frameworks stuff extra things into them: big chunks of inline data for JavaScript, embedded SVG icons, or images converted to long text strings (base64). Bigger files take longer to download, especially on a phone, and the browser can't finish setting up the page until it has the important parts.
There's an SEO angle too. Googlebot only reads the first 2 MB of an HTML file (measured before compression). Anything past that isn't used for indexing. Very few pages get anywhere near that, but bloated pages occasionally do, and they lose content from search without anyone noticing.
The ranges below are my own rules of thumb from looking at a lot of pages, not official Google numbers. The Server Speed & Page Weight Checker shows your HTML size and whether it's compressed.
Gzip or Brotli compression shrinks text files before they're sent, often by 70% or more for HTML. Most hosts and CDNs (including Cloudflare) turn it on by default, but it's worth checking. Our speed checker tells you whether it's on, except for sites hosted on Cloudflare, where it can't be measured from our side.
| HTML size | My take | What to do |
|---|---|---|
| Under 50 KB | Lean | Nothing. Nice work. |
| 50 – 150 KB | Normal | Typical for blogs and content sites. |
| 150 – 300 KB | Heavy | Look for inline SVGs, inline data and leftover template code. |
| Over 300 KB | Bloated | Move large inline data and base64 images out of the HTML. |
| Over 2 MB | Too big for Google | Googlebot stops reading here. Fix this first. |
Rough guide only, except the 2 MB limit, which comes from Google's Googlebot documentation.
DOM size: how complicated your page is
The DOM is the browser's internal map of every element on the page: every <div>, paragraph, link and image. DOM size is just how many of those elements there are.
Every element has to be styled, positioned and drawn. When a page has thousands of them, every click, tap or menu that opens makes the browser do a lot of recalculating. That shows up as sluggishness, and it can hurt your Interaction to Next Paint (INP) score, which is one of the three Core Web Vitals.
Google's Lighthouse tool starts warning at about 800 elements and flags pages above about 1,400. Plenty of fine pages go over that, so treat it as a nudge, not a rule. It's a problem when the page also feels slow to use, especially on cheaper phones.
1) Remove extra wrapper elements. Many layouts nest divs five deep where one would do. 2) Don't load 500 rows of a table or list at once. Paginate or load more as people scroll. 3) Watch out for page builder widgets and mega menus. They're often the biggest offenders.
| Elements on the page | Lighthouse says | In practice |
|---|---|---|
| Under 800 | Fine | Should feel smooth almost everywhere. |
| 800 – 1,400 | Warning | Common for richer pages. Keep an eye on responsiveness. |
| Over 1,400 | Flagged as excessive | Worth trimming, especially if the page feels slow on phones. |
Thresholds from Lighthouse's DOM size audit (now the "Optimize DOM size" insight).
HTTPS
HTTPS has been a (small) Google ranking signal since 2014. The bigger reason to use it today is that browsers show a "Not secure" warning on plain HTTP pages, and that scares visitors off.
If you're on a modern host or behind Cloudflare, you probably have HTTPS already and it costs nothing. Just make sure every http:// address redirects to https://. The Server Speed & Page Weight Checker checks for HTTPS, and the Crawlability & Indexability Reader shows the redirect path a URL takes.
A short checklist
If you only do five things, do these:
- Use a CDN. Put your site behind Cloudflare or a similar service so visitors get served from nearby.
- Check compression. Make sure your HTML, CSS and JavaScript are sent with gzip or Brotli.
- Clean up your HTML. View your page source and look for huge blocks of inline data, embedded images or tracking scripts you don't use anymore.
- Trim the DOM. Remove unnecessary wrapper elements and don't render giant lists all at once.
- Test your mobile layout. Most speed problems hurt most on phones. Run the Mobile Viewport Checker too.
Then re-test your page with the Server Speed & Page Weight Checker to see what changed. For the real visitor numbers Google uses, check the Core Web Vitals report in Google Search Console once you have enough traffic.
Test your page's speed basics
Check your server response time, HTML size, compression and element count in one scan.
Server Speed & Page Weight Checker · free, no sign-up
Sources
I checked the facts in this guide against these pages (last reviewed November 20, 2026).

About the author: Caleb Deckert
I've been doing SEO for three years and reputation management for the last year, where I help clients use their own sites and profiles to take up as much of Google's first page as possible. I built EverythingSEO so anyone can check their pages for free, and I write these guides from what I actually run into at work.
Try it on your own site
Paste in any URL and the free analyzer checks everything in this guide in a few seconds. No account, no paywall.