Tilted glass bottle with sand streaming out through the constricted narrow neck

Site Speed Optimization: How to Make Your Website Faster

Technical SEO Guide

Site Speed Optimization: How to Make Your Website Faster

A faster site keeps more visitors, converts better, and gives Google’s page experience signals something to like. But speed work is easy to get wrong by fixing the wrong thing. This guide shows you how to find your real bottleneck and fix it, in order of impact.

By Rahul Saini, Author at Search Counsel Co. Last updated [JULY] 2026.

Featured answer: how do I improve my site speed?

Measure first to find your bottleneck, then work in order of impact. Start with your server response, because a slow server undoes everything else. Then compress and modernize your images, which are usually the heaviest part of a page. Then defer non-critical JavaScript, add caching and a CDN, and retest after each change.

Measure before you optimize. The fastest way to waste a weekend is to apply every speed tip you read to a site that only has one real problem. Most slow sites are held back by one or two bottlenecks, usually the server, the images, or the JavaScript. Find yours first, fix it, and retest. And don’t chase a perfect score on a testing tool: Google ranks on what real users experience, not on a lab number.

Server

Fix first

A slow response time caps everything. No front-end tweak can undo it.

Images

Biggest win

Usually over half your page weight. The fastest byte savings you can get.

Code

Defer it

Render-blocking scripts are why a page sits blank. The 2026 frontier.

Delivery

Use a CDN

Serve assets from close to your visitors, compressed and cached.

Article note: Written by Rahul Saini at Search Counsel Co. Grounded in Google’s performance guidance on web.dev and current optimization practice. Performance figures vary by site and are noted as directional; measure your own before and after.

1) Why site speed matters

Speed matters for three reasons, in roughly this order of certainty. First and most reliably, it affects your business. Faster pages lose fewer visitors and convert more of the ones who stay. Deloitte’s “Milliseconds Make Millions” study found that even a tenth of a second of mobile load-time improvement measurably lifted retail conversion rates, and every study since points the same way. Second, it’s a ranking signal, though a modest one. Speed feeds Google’s Core Web Vitals, which are a light, tiebreaker-level ranking factor covered in full in our guide to Core Web Vitals. Third, it affects how efficiently search engines and AI bots crawl you: a faster server lets them fetch more of your pages in the same time, which matters on larger sites and ties into crawl budget.

The honest framing is that speed is worth doing well for users first and rankings second. Treat it as a product quality that happens to help SEO, not an SEO trick, and you’ll prioritize the right things.

2) Measure before you optimize

Before changing anything, find out what’s actually slow. Guessing leads to hours spent compressing images on a site whose real problem is a 700ms server response. Run your key pages through a testing tool, read where the time is going, then fix that.

The one rule that saves the most wasted effort: optimize for field data, not lab scores. PageSpeed Insights shows you both a lab test and real-user field data, and only the field data reflects what your visitors experience and what Google ranks on. A perfect lab score means little if real users on mid-range phones are waiting. The difference, and the tools, are covered in our Core Web Vitals guide. Use PageSpeed Insights to start, WebPageTest or GTmetrix for a deeper waterfall view, and Chrome DevTools to profile a specific page. Then measure, fix one thing, and retest, so you know what actually moved the needle.

Speed work breaks into four layers, and it pays to tackle them in priority order:

Priority Layer What it covers Highest-impact fix
1 Server Hosting, response time, caching, database Good hosting plus full-page caching to get response time down.
2 Images Formats, compression, sizing Convert to WebP or AVIF and compress.
3 Code CSS, JavaScript, fonts Defer non-critical JavaScript and remove unused code.
4 Delivery CDN, compression, protocols Put the site behind a CDN with Brotli and HTTP/3.

3) Fix your server first

Your server response time is the ceiling on everything else. It’s measured as Time to First Byte, the moment the browser receives the first byte of your page, and if it’s slow, no amount of image or code work will fully rescue you. Aim for a Time to First Byte under about 200 milliseconds. Cheap shared hosting often delivers three times that, which quietly drags your loading metric into the red before a single line of your front-end even runs.

  • Use hosting that fits the job. A few-dollar shared plan puts you on a crowded server where someone else’s traffic spike becomes your slowdown. For a business-critical site, managed hosting or a quality cloud server makes a fundamental, not incremental, difference.
  • Cache full pages. Full-page caching serves a pre-built copy of your page instead of rebuilding it on every request, which is often the single biggest server-side win.
  • Cache your database too. On dynamic sites, object caching with something like Redis stores the results of repeated database queries. One documented case cut a store’s response time from over a second to around 200 milliseconds with this alone.
  • Tidy the database and runtime. Slow queries and bloated settings are a hidden cause of high response times on content-managed sites, and running a current version of your language, like a recent PHP, is a free speed gain.

4) Optimize images and media

Images are usually the heaviest thing on a page, often more than half its total weight, which makes them the best place to win back bytes fast. The good news is the fixes are quick and the impact is immediate.

  • Use modern formats. Convert images to WebP or AVIF, which are dramatically smaller than old JPEGs and PNGs at the same quality. This produces the largest saving per hour of effort.
  • Compress before you upload. Tools like Squoosh, ShortPixel, or TinyPNG shrink files further with little visible quality loss.
  • Serve the right size. Use responsive images with srcset, or the picture element, so a phone loads an 800-pixel image instead of a 2500-pixel one scaled down.
  • Set width and height. Always give images dimensions so the browser reserves their space and the page doesn’t jump as they load, which also protects your layout stability metric.
  • Lazy-load below the fold, but never the hero. Add loading=”lazy” to images further down the page, but not to your main above-the-fold image, since lazy-loading that one delays your loading metric. This is covered in our Core Web Vitals guide.
  • Go easy on video. Avoid autoplaying heavy video, use a poster image, and lazy-load embeds, which are among the heaviest things you can put on a page.

5) Trim your code and fonts

Once your server and images are handled, code is what’s left, and in 2026 it’s where most of the remaining slowness lives. The infrastructure problem is largely solved: fast hosting, caching, and CDNs are now standard. The bottleneck has moved to the device, to how much JavaScript the browser has to download, parse, and run. Performance today is as much a coding discipline as an infrastructure one.

  • Minify everything. Strip whitespace and comments from your CSS, JavaScript, and HTML.
  • Remove what you don’t use. Unused CSS and JavaScript is dead weight. Loading a large library for a small task is hard to justify now that native JavaScript handles most of what older libraries did.
  • Defer non-critical JavaScript. Render-blocking scripts in the head make visitors stare at a blank screen. Add defer or async to non-essential scripts so your content paints first. Eliminating render-blocking resources is often the single most visible speed improvement you can make.
  • Inline critical CSS. Put the small amount of CSS needed for the top of the page directly in the HTML, and load the rest afterward.
  • Audit third-party scripts. Analytics, chat widgets, tag managers, and ad pixels each add weight and can add seconds. Question whether each one earns its cost, defer the ones that stay, and consider moving tracking server-side.
  • Keep fonts light. Use WOFF2, load only the weights and characters you actually use, preload your key font, and set font-display: swap so text stays visible while the font loads.

Heavy JavaScript is the most common reason a site still feels sluggish after everything else is optimized, and it’s the same thing that hurts responsiveness. The deeper fix, rendering your content on the server instead of building it in the browser, is covered in our guide to JavaScript SEO.

6) Deliver from the edge

The last layer is getting your files to visitors quickly, wherever they are. These are close to table stakes now, and most are a one-time setup:

  • Put your site behind a CDN. A content delivery network copies your images, CSS, and JavaScript to servers around the world, so a visitor far from your origin gets the files from a nearby edge instead. It cuts latency significantly, especially for international audiences, and most production sites should use one.
  • Compress your text files. Enable Brotli or Gzip compression for HTML, CSS, and JavaScript. Brotli compresses a little better than Gzip, and most hosts and CDNs support it.
  • Use modern protocols. HTTP/2 sends many files over one connection at once, and HTTP/3 goes further on unreliable mobile networks. Both are widely supported, usually just by being on a modern host or CDN.
  • Add resource hints. Use preconnect for important external origins and preload for critical resources, so the browser starts fetching them sooner.
  • Cut redirects. Every redirect adds a round trip. Point links straight at their destination, as covered in our guide to URL structure and redirects.
Common speed killer Fix
Slow, cheap shared hosting Move to quality managed or cloud hosting and add caching.
Large, unoptimized images Compress and convert to WebP or AVIF, and serve responsive sizes.
Render-blocking JavaScript and CSS Defer non-critical scripts and inline critical CSS.
Too many third-party scripts Audit and remove or defer analytics, chat, and ad tags.
No CDN for a global audience Serve assets from a CDN close to your visitors.
Missing image dimensions Set width and height to prevent layout shift.

7) Site speed and AI crawlers

As with Core Web Vitals, it’s worth being honest here. AI answer engines don’t experience your page’s load time the way a human does, and there’s no confirmed rule that a slow site is excluded from AI answers because of its speed score. So speed isn’t a direct lever for AI citations.

The overlap is real but indirect, and it runs through two things. First, the work that speeds up a page, cutting JavaScript and rendering content on the server, is exactly what makes that content readable to AI crawlers, most of which don’t run JavaScript and only see your raw HTML. Optimize once and both benefit. Second, AI crawlers now hit sites hard, and a fast, well-cached server handles that extra load without straining, while a slow one buckles. So the same server work that improves speed also keeps you stable as bot traffic grows, a trend covered in our crawl budget guide. The bigger picture of being readable and citable to AI lives in our AI search optimization guide and the technical SEO pillar.

Free tool

Check what’s slowing you down

PageSpeed Insights is the free starting point for your speed scores. Our Crawlability and AI-Readiness Checker covers the crawl and rendering issues that also weigh pages down, especially heavy JavaScript. For a full performance audit that finds your bottleneck and prioritizes fixes by impact, our technical SEO and site audit service runs it through our [FRAMEWORK NAME] process.

8) Sources used for this guide

This guide is anchored on Google’s performance documentation, with performance figures noted as directional.

Source What it supports
Google web.dev performance documentation (including Optimize TTFB) That server response time is the ceiling on performance, and how CDNs, caching, and protocols reduce it.
Google render-blocking resources guidance That eliminating render-blocking CSS and JavaScript is one of the most visible loading improvements.
Deloitte Digital, “Milliseconds Make Millions” That small load-time improvements measurably increase conversion rates. Directional.
HTTP Archive page-weight data That images make up a large share of total page weight on most sites.

FAQ: site speed

What causes a slow website?

Most slowness comes from one of a few sources: a slow server or cheap hosting, large unoptimized images, render-blocking or excessive JavaScript, too many third-party scripts, or no CDN for distant visitors. The point of measuring first is to find which of these is your actual problem before you spend time fixing the others.

What is a good TTFB?

Time to First Byte is how long the server takes to send the first byte of your page, and a good target is under about 200 milliseconds. Cheap shared hosting often comes in well above that, sometimes over 600 milliseconds, which caps how fast your page can ever be no matter how well the front end is built.

Do images really slow down a website?

Yes, usually more than anything else. Images often account for more than half of a page’s total weight, so compressing them and converting to modern formats like WebP or AVIF is typically the fastest, highest-impact improvement you can make. Serving correctly sized images to each device helps further.

Does site speed affect SEO?

It does, but as a modest factor. Speed feeds Google’s Core Web Vitals, which are a light, tiebreaker-level ranking signal rather than a major one. The stronger reason to be fast is user experience and conversions. Failing badly on speed can hold you back, but being fast won’t override weak content.

What is a CDN and does it help speed?

A CDN, or content delivery network, stores copies of your files on servers around the world so visitors download them from a location near them instead of from your origin server. It reduces latency significantly, especially for international audiences, and offloads work from your server. Most production sites benefit from using one.

Should I aim for a 100 score in PageSpeed Insights?

No. A perfect lab score is satisfying but not the goal, because Google ranks on real-user field data, not the lab number. Chase good field-data results for real visitors, use the lab score only as a diagnostic, and stop optimizing once returns get small rather than chasing the last few points.

Conclusion: fix the bottleneck, not everything

Fast sites aren’t built by applying every tip at once. They’re built by measuring, finding the one or two things holding a page back, and fixing those in order of impact: the server first, then images, then code, then delivery. Optimize for what real users experience rather than a lab score, retest after each change, and keep an eye on performance over time, since every new image and plugin can slow you down again.

Speed is one part of page experience. The metrics that measure it are covered in our guide to Core Web Vitals, and the security side, including HTTPS, in HTTPS and site security, all under the technical SEO pillar.

Editorial note: This guide is for general marketing education. Performance results vary by site and platform, so measure your own before and after any change, and verify current recommendations against Google’s documentation.

 

Scroll to Top