All posts

Static vs dynamic websites, explained without the jargon

A static website is prepared in advance and served as ready-made pages: fast, cheap and hard to hack. A dynamic website is assembled on every visit, which suits logins. Most business sites should be static.

A static website is prepared in advance and served as ready-made pages. That makes it fast, cheap to host and hard to hack. A dynamic website is assembled on every visit, usually from a database, which suits logins, shopping carts and personalised content. Most business marketing sites should be static, with a few dynamic parts where they're genuinely needed.

"static site vs dynamic site" is a common search, often from business owners told one or the other by a developer. Here's the plain version.

An analogy

A static site is like a printed menu. It's prepared once, and everyone gets the same copy instantly.

A dynamic site is like a waiter writing a custom menu for every guest. It's flexible, but slower, and something can go wrong each time.

Static websites

How they work: pages are built ahead of time, often by a framework like Astro, and stored as files. When someone visits, the server sends the file. No database query, no assembling.

Strengths:

  • Fast: files can be served from a content delivery network close to the visitor.
  • Cheap: static hosting is often free. Cloudflare's docs say static asset requests are free and unlimited.
  • Secure: with no database or admin login on the public site, there's very little to attack.
  • Reliable: fewer moving parts means fewer outages.

Limits: content changes need a rebuild, usually triggered automatically when you publish in a CMS and done in a minute or two.

Dynamic websites

How they work: each request runs code on a server, which pulls content from a database and builds the page. WordPress works this way by default.

Strengths:

  • Personalised content: accounts, dashboards and recommendations.
  • Instant updates: change the database and the next visitor sees it.
  • Complex features: carts, searches and user-generated content.

Limits: slower without caching, more to maintain, and more to secure. Patchstack counted 11,334 new WordPress ecosystem vulnerabilities in 2025, most in plugins, which is the cost of a big dynamic platform.

Two lists comparing dynamic and static websites
Most business marketing sites should be static.

The modern middle ground

Today the line is blurry. Frameworks like Astro build static pages by default and add small dynamic pieces only where needed: a form handler, a live availability check, a booking widget. That's often called "islands" or hybrid rendering. You get static speed and safety, with dynamic features where they matter. I explain it in Why Astro websites load faster.

Diagram of a web page where every block is plain HTML except one highlighted interactive island that loads JavaScript
Islands architecture: the page is HTML, and only the interactive part loads code.

Editing a static site

People assume static means "only developers can change it". Not any more. With a headless CMS like Sanity, your team logs in, edits content and presses publish, and the site rebuilds itself. See The best CMS for Astro in 2027.

Which does your business need?

Static (with a CMS) suits:

  • Service businesses, consultants and trades.
  • Portfolios, restaurants, clinics and agencies.
  • Blogs and resource libraries.
  • Small product catalogues with checkout handled by Shopify or Stripe.

Dynamic suits:

  • Membership sites and customer portals.
  • Large online stores with complex inventory.
  • Marketplaces and social features.
  • Apps where every user sees different data.

What I build

Almost every small business site I build is static, in Astro with a Sanity CMS, with dynamic pieces only where needed, like a spam-protected contact form. Measured with Lighthouse on 8 November 2026, my static rebuild of Iceberg Quest, moved off dynamic WordPress, showed main content in 1.4 seconds instead of 11.0.

Bar chart: Iceberg Quest page weight fell from 1.5 MB to 864 KB, files from 112 to 16 and main content time from 11.0 s to 1.4 s
Iceberg Quest: dynamic WordPress to static Astro.

Common myths

"Static sites can't have forms." They can. A small server function or form service handles submissions. My own contact form runs this way, with spam protection.

"Static sites can't be updated by non-developers." They can, with a headless CMS. You publish; the site rebuilds.

"Dynamic is more professional." Not for a marketing site. Big brands increasingly serve their marketing pages statically for speed and safety.

"Static means old-fashioned HTML." Modern static sites are built with frameworks, components and a CMS. Only the output is simple.

Signs your site should be static

  • Most pages are the same for every visitor.
  • Content changes daily at most, not every second.
  • You don't need visitor accounts.
  • Speed and security matter to you.
  • You'd like hosting to cost little or nothing.

If that's you, a static site with a CMS is almost certainly the right choice.

Questions to ask a developer

  1. Will my site be static, dynamic or hybrid, and why?
  2. What happens when I publish a change, and how long does it take?
  3. Is there a database on the public site?
  4. What will hosting cost each month?
  5. What needs updating regularly, and who does it?

Frequently asked questions

Is a static website bad for SEO?

No. Static sites are often better for SEO because they're fast and their content is in the HTML from the start.

Can a static website have a contact form?

Yes. Forms are handled by a small server function or a form service, while the pages stay static.

Is WordPress static or dynamic?

Dynamic by default. It can be made faster with caching, or used headless with a static front end.

Sources

Work with Jeo Web Studio

Tell us about your business and what you want the site to do. Rough notes are fine. We will reply with honest advice, a plan and a fixed price, or tell you plainly if we are not the right fit.

Book a discovery call

A free 30 minute video call. Talk it through before you commit to anything.

Pick a time

Or tell us about your project

We only use your details to reply. See our privacy policy.