Back to Blog
Website Optimization4 min readMay 18, 2026

How Hosting Affects Website Performance

The fastest code in the world can't save a slow host. Here's how hosting affects performance and what to look for when you're picking one.

monitor screengrab
Photo by Stephen Phillips - Hostreviews.co.uk on Unsplash
Table of contents

You can optimize images, defer JavaScript, inline critical CSS — but if your host takes 1.5 seconds to send the first byte, none of it matters. Your Largest Contentful Paint is at least 1.5 seconds. Period.

Hosting sets the floor for everything else.

How hosting hits performance

Time to First Byte (TTFB)

TTFB is the time from the browser making a request to receiving the first byte of the response. It includes:

  • DNS lookup
  • TLS handshake
  • Server processing time
  • Network latency to your hosting region

A good TTFB is under 600ms. Excellent is under 200ms. Over 800ms is bad.

Geographic latency

If your server is in Virginia and your user is in Tokyo, you're paying roughly 200ms just in network round-trips before any work happens. That latency can't be optimized — only avoided by serving from somewhere closer.

HTTP version

HTTP/1.1 serializes requests; HTTP/2 multiplexes them; HTTP/3 (QUIC) handles packet loss better on mobile. Most modern hosts use HTTP/2+ by default. Older hosts may still be on HTTP/1.1, which is meaningfully slower.

Resource limits

Cheap hosting often throttles:

  • CPU per request (slow PHP execution)
  • Concurrent connections
  • Database queries
  • Bandwidth during traffic spikes

When you hit a limit, requests pile up and TTFB skyrockets.

The hosting hierarchy

Roughly from slowest to fastest for typical content sites:

1. Shared hosting (slow)

GoDaddy shared, HostGator, Bluehost basic plans. Hundreds of sites per server. TTFB often 1–3 seconds under load.

2. Managed WordPress hosting (moderate)

Kinsta, WP Engine, Pressable. Optimized stack, caching included. TTFB 200–500ms typically.

3. VPS / cloud servers (fast if configured)

DigitalOcean, Linode, AWS EC2. You control the stack. Fast if you set up caching; slow if you don't.

4. Static hosting with edge delivery (very fast)

Vercel, Netlify, Cloudflare Pages, GitHub Pages. Pre-rendered HTML served from edge POPs worldwide. TTFB under 100ms globally.

5. Edge runtimes (fastest dynamic)

Vercel Edge, Cloudflare Workers, Fastly Compute. Dynamic code running in 200+ cities worldwide. TTFB under 50ms common.

The CDN multiplier

A CDN (Content Delivery Network) caches your assets — and increasingly your HTML — at edge servers close to users. Even with a mediocre origin server, a CDN dramatically improves perceived performance.

Free CDN options worth using:

  • Cloudflare (free plan) — adds DNS, caching, DDoS protection, edge logic
  • Bunny CDN (cheap paid) — fast, simple pricing
  • Vercel/Netlify (free tier) — built-in CDN for static assets

If you're not on a CDN, putting Cloudflare in front of your existing host takes 10 minutes and usually halves your global TTFB.

What "good hosting" looks like in 2026

For a new project:

  • Static site (blog, landing page): Vercel, Netlify, or Cloudflare Pages. Free, instant, globally fast.
  • WordPress: Kinsta or WP Engine. Pricier but fast and supported.
  • Custom dynamic app: Vercel, Fly.io, Railway, or your cloud of choice with a CDN in front.

The wrong choice for most sites in 2026: cheap shared hosting. The $3/month savings cost you 1+ second of TTFB on every page load.

How to test your TTFB

Quick options:

  1. PageSpeed Insights — shows TTFB at the top of every report.
  2. Chrome DevTools — Network tab, click your HTML request, look at "Waiting for server response".
  3. WebPageTest.org — detailed waterfall with TTFB measurement.
  4. RateMySite free audit — surfaces hosting-related issues in plain English.

Test from multiple geographies if your audience is global. A 200ms TTFB from your home in California means nothing if your customers in Australia see 1500ms.

How to fix slow hosting

Option 1: Move to a faster host

Often the cleanest fix. Static hosting (Vercel/Netlify) is free for hobby sites and supports custom domains.

Option 2: Add a CDN

Cloudflare free plan in front of your existing host. Helps with global latency and offloads work from your origin.

Option 3: Cache aggressively

If you're on a CMS:

  • Enable page caching (WordPress: WP Rocket, W3 Total Cache)
  • Cache database queries
  • Use a Redis or Memcached layer if you have dynamic content

Option 4: Reduce work per request

  • Optimize database queries (N+1 is the killer)
  • Pre-render content where possible (static site generators)
  • Move to a faster runtime (PHP 8.3 vs PHP 7.x is significant)

Option 5: Use edge runtimes

Vercel Edge Functions, Cloudflare Workers — these run your dynamic code at the edge, typically responding in under 50ms anywhere in the world.

When hosting isn't the problem

Sometimes TTFB looks slow but the culprit is elsewhere:

  • DNS — slow DNS resolver adds time before TTFB starts. Use Cloudflare DNS (1.1.1.1).
  • TLS handshake — first connection to a new domain includes TLS setup. Use <link rel="preconnect"> to warm up connections.
  • Server-side rendering bottleneck — if you SSR every request and call slow APIs, your "fast" host won't save you. Cache or pre-render.
  • Heavy redirects — a 301 from http:// to https:// to www. adds 2× the round-trip time.

The bottom line

Hosting sets your performance ceiling. A great host with a CDN gives you 100–300ms TTFB worldwide, which means everything else (CSS, JS, images) starts from a strong baseline.

If your TTFB is over 800ms, your bottleneck is hosting — not your front-end. Fix that first. Then come back to optimizing images and cutting JavaScript.

Want to know your TTFB right now? Run a free audit — it's the first metric we show.

Frequently Asked Questions

What's a good Time to First Byte (TTFB)?+

Under 600ms is good. Under 200ms is excellent. Over 800ms means your hosting or server-side code is the bottleneck — not your front-end.

Do I need a CDN if I have fast hosting?+

Yes for global audiences. Even the fastest origin server is hundreds of milliseconds away from users on another continent. A CDN caches your content close to every user, regardless of where your origin is.

Is shared hosting always slow?+

Usually, yes. Shared hosts pack hundreds of sites onto each server. When one site gets traffic, everyone slows down. Cheap shared hosts (under $5/mo) are almost always the bottleneck on a slow WordPress site.

Rate your website for free

See how your site really performs

Run a full website health check on mobile and desktop in 30 seconds — no signup needed.

Continue reading