Baack

Static vs dynamic websites: what's the difference, and which suits your marketing site?

Published

A static website is one whose pages are built before anyone visits: every visitor gets the same ready-made page, sent straight from a server near them. A dynamic website builds each page when someone asks for it, by running code and reading a database on the server. Most marketing sites have been dynamic for twenty years, mostly because WordPress and other content systems are. More and more are moving to static, for speed, security and running cost, and a headless CMS is what makes that move practical for the marketing team.

This guide explains the difference in plain terms, with the numbers from moving our own website from one to the other, and helps you decide which suits your site.

What is a static website?

A static website is a set of finished pages, made ahead of time and stored as files. When a visitor opens a page, the server doesn't have to work anything out: it sends the file it already has.

The word "static" describes how the page is delivered, not what it can do. A static page can still have menus, videos, forms, search and animation. What it doesn't do is build itself from scratch for each visitor.

The pages are made by a build: a program that reads your content, puts it into the page designs and writes out every page of the site. Our own website, www.baack.co, has 513 pages, and the build makes all of them in about 14 seconds. The files then go to a host that keeps copies close to visitors around the world, called a content delivery network (CDN).

What is a dynamic website?

A dynamic website builds each page at the moment it's requested. A visitor opens a page, the server runs the site's code, reads the content from a database, puts the page together and sends it. The next visitor gets the same work done again, unless the site keeps a copy for a while (a cache).

WordPress works this way, as do most traditional content management systems. It's the right design for pages that really are different for each person, such as an account page, a shopping cart or a dashboard. For a home page or a blog post that's the same for everyone until someone edits it, it means doing the same work thousands of times to produce the same page.

Static vs dynamic websites: the difference at a glance

Diagram: what happens when a visitor opens a page. On a static website, the page was built ahead of time when the content was published, so a server near the visitor sends the finished file at once. On a dynamic website, a server runs the site's code, reads the database and builds the page, then sends it, for every visitor.

Static website Dynamic website
When the page is made Ahead of time, when content is published When each visitor asks for it
What a visitor waits for A file sent from a server nearby Code to run and a database to answer, then the page
A traffic spike Handled by the host, which is built for it Every visit adds load to your server and database
What can be attacked Files; no code or database answers visitors The site's code, plugins, logins and database
Hosting Simple, and often low cost A server and a database to run, update and back up
Showing a change After the site is rebuilt, from seconds to minutes As soon as it's saved
Pages for one person In the browser, after the page loads Built on the server, page by page
Best for Marketing pages, blogs, docs and landing pages Accounts, carts, dashboards and live data

What changed when we moved our own website from dynamic to static

Our previous website built every page on the server for each visit, from content in Baack, with no cache in front of it. In October 2026 we rebuilt it as a static site on exactly the same content: nothing was moved or rewritten, only the way pages are made. Baack works with either approach, and with a mix of both: it holds the content, and the site reads it when it's built or when a page is requested. We measured both with Lighthouse, Google's free tool for testing a page's speed and quality, on the same pages:

Measured on mobile Dynamic (old) Static (new)
Home page performance score 30 87
Home page weight 2,449 KB 163 KB
Getting started guide performance score 53 92
Accessibility, every page measured 94 to 95 100

Lighthouse 12.8, median of three runs, October 17, 2026. The full story is in the Baack website case study.

Not all of that is down to static pages: we also rebuilt the design, and a new design is a chance to drop weight. But the biggest gain came from the pages arriving finished. We tested the live site again on November 29, 2026, from a single laptop. In a browser set to a phone's screen size, our webhook guide downloaded 124 KB and loaded in about half a second. Over five requests for the home page, the first part arrived within 0.2 to 0.4 seconds.

Why marketing and content sites are moving to static

Speed, which search and conversion both reward. A finished page arrives faster than one that has to be built. Google uses page experience as one of many signals in its rankings, and visitors leave slow pages before they see the offer. Static pages make fast the default rather than something to fix with caching plugins.

Fewer ways in. On a static site, visitors only ever receive files. There's no login page, plugin or database facing the public for someone to attack, and nothing to patch on a Sunday because a plugin had a vulnerability.

Traffic spikes stop being a worry. A launch, a campaign or a mention on a busy site is handled by the host, which serves the same files to everyone from servers around the world. Your content system only works when the site is built.

Lower running costs. Hosting files is simpler than running a server and a database, and static hosts often have free or low-cost plans for marketing-sized sites. There's also less to maintain: no server updates, no plugin conflicts, no database backups for the website itself.

Easier to change later. The pages are built from content held elsewhere, so a redesign is a new build on the same content, as ours was, not a migration.

The catch: keeping a static site up to date

Static sites used to have a real drawback for marketing teams. Every change meant a developer editing files and rebuilding the site, so the marketing team waited, or the site went stale.

A headless CMS removes that. Your team writes and publishes in the CMS, and the website is built from what's published there. The part that closes the gap is a webhook: the moment someone publishes, the CMS sends a message to the build service, which rebuilds the site and puts the new pages live.

Diagram: publish to live on a static site, with timings from damienallison.com. 1, an editor publishes in Baack. 2, Baack sends a webhook to the build service, within seconds. 3, the build reads the published content and makes every page, in 33 to 47 seconds. 4, the new pages are deployed to the host, in about 20 seconds. 5, visitors see the change, about 2 minutes after publishing.

The founder's own blog, www.damienallison.com, works exactly like this, with its content in Baack. A build takes 33 to 47 seconds and a deploy about 20. When we published 86 pieces of content at once in November, the rebuilt site was live about 2 minutes later. The damienallison.com case study has the details, including a post's mobile page weight falling from 1,494 KB to 523 KB.

Two things are worth knowing. First, a change goes live a minute or two after publishing, not the instant it's saved, which is fine for almost all marketing content. Second, nothing reaches visitors until someone publishes: the build reads only published content, so a draft can't slip out with the next rebuild. Our own site, www.baack.co, works a little differently as part of how we release changes: we build it constantly, test a build, and then choose when to deploy it, rather than rebuilding on every publish.

Editors also don't lose the page. With Baack's in-page editing, an editor signs in on the live site and changes the words where they are, on the static page itself. The editing tools load only for signed-in editors, so visitors still get the plain, fast page.

What stays dynamic on a static website

Static doesn't mean nothing moves. The usual pattern, often called Jamstack, is static pages for everything that's the same for everyone, with small parts that run in the visitor's browser and talk to services when they need to. On www.baack.co:

  • Personalized headlines. The home page's headline changes for founders, marketing leads and developers. All three versions are built into the page ahead of time, and the browser switches between them with no request to a server.
  • Search. The search index is built with the site, and searching runs in the visitor's browser.
  • Forms. The stack audit form sends its details to Baack's API, which records them; the page itself stays static.
  • Prices in your currency. Pricing is three static pages, in US dollars, pounds and euros, each built ahead of time.
  • The console. The admin console you sign in to is a single static page that loads the app, which then reads your data from the API.

A useful rule: build ahead of time whatever is the same for everyone, and fetch in the browser only what is different for each visitor. At the other end of the spectrum, apps are fully dynamic. Modern frameworks let sites mix and match to have the best of both worlds.

Static website hosting

Because a static site is a set of files, it can be hosted almost anywhere. Hosts built for it, such as Cloudflare Pages, Netlify and Vercel copy the files to servers around the world and can start a new build when your CMS sends a webhook. Large companies also use cloud storage behind a CDN, such as Amazon S3 with CloudFront, if more customization or control is needed.

www.baack.co is hosted on Cloudflare Pages, and www.damienallison.com is served by Cloudflare too. When you compare hosts, ask:

  • Builds: how long can a build run, how many can run a month, and can a webhook start one? Think about your publication cycle workflow needs for content operations.
  • Traffic: what's included, and what happens on a busy day? Different providers price by usage. Cloudflare's free plan, for example, currently includes 100,000 Workers requests a day, and requests for a static site's files are free and unlimited.
  • Previews: can you see a change on a private address before it goes live? Most providers will make it easy to build a preview site which can be restricted to your team.
  • Redirects: can you keep old addresses working, with permanent redirects, when you move? We kept 327 old addresses working when we rebuilt ours.
  • Forms and functions: where will form submissions and any small pieces of server code run? Static pages can't receive form submissions so most sites will also need some kind of cloud form or function to process requests like signups.

When a dynamic website is the better fit

Static isn't right for everything. Choose dynamic pages, or a mix, when:

  • Each page is different for each person. Accounts, carts, single page apps, order history and dashboards are built for one visitor at a time. On a static site these become app pages that read data after sign in, like our console, which suits some teams better than others.
  • Content changes every minute. Live scores, stock levels or prices that change through the day need to show as soon as they're saved, without waiting for a build.
  • The site is very large. A site with hundreds of thousands of pages takes longer to build. Most static tools can rebuild only the pages that changed, but it's worth testing with your own content.
  • Your team relies on the old platform's plugins. If the site depends on WordPress plugins for bookings, memberships or shops, plan what replaces each one before moving.

Many sites end up hybrid: static marketing pages and blog, with a dynamic app or shop under the same address. Baack offers a rich set of capabilities for building experiences faster so your site can focus on the product.

How to choose: questions for your team

  1. Is each page the same for every visitor? If most are, static is a strong default. It's also worth considering splitting the site between static and dynamic sections as we do for Baack.
  2. How quickly must a change go live? If a minute or two after publishing is fine, static works. If it must be instant, keep those pages dynamic. You can also embed dynamic components into a page with a component-based framework that supports it. Component content management systems are often used for this scenario and Baack supports this well with a content entity for the dynamic component.
  3. Who changes the website, and how? Marketing should publish without a developer. Check the CMS can trigger a rebuild with a webhook, and that editors can see their changes in place.
  4. What does the site do besides show content? List every form, search, login, shop and booking, and decide where each one runs. Map the active parts of the form into separate functions.
  5. What do you pay today to keep the current site fast and safe? Hosting, caching, security plugins and updates are the costs a static site removes.
  6. How will old addresses keep working? Plan redirects from day one, so search rankings and links carry over.

If you're weighing a move, book a stack audit and we'll go through your site with you.

Static website terms

Term What it means
Static website A site whose pages are built ahead of time and sent as finished files
Dynamic website A site that builds each page when a visitor asks for it
Build The step that reads your content and writes out every page of the site
Static site generator The program that does the build, such as Astro, Next.js, Hugo or Eleventy
CDN A content delivery network: servers around the world that keep copies of your pages near visitors
Jamstack Building the website ahead of time, separately from the data and business logic it reaches through APIs
Headless CMS A CMS that holds your content and sends it to your website, apps and other channels, without making the pages itself
Webhook A message one system sends another the moment something happens, such as content being published

Questions about static and dynamic websites

What is the difference between a static and a dynamic website?

A static website's pages are built ahead of time and sent as finished files, the same for every visitor. A dynamic website builds each page when it's requested, by running code and reading a database on the server.

Is a static website good for SEO?

Yes. Static pages arrive fast and complete, which helps both search engines and visitors. When we moved our site from dynamic to static on the same content, the home page's mobile performance score went from 30 to 87. Good SEO still needs the basics: titles, descriptions, a sitemap and redirects, as our headless CMS SEO guide covers.

Can a static website be updated?

Yes. With a headless CMS, your team edits and publishes in the CMS, and a webhook rebuilds the site automatically. On damienallison.com, changes are live about 2 minutes after publishing.

Can a static website have a CMS?

Yes. A headless CMS holds the content, and the site is built from it. Editors work in the CMS, or on the page itself with in-page editing, and never touch code.

Is WordPress static or dynamic?

WordPress is dynamic by default: it builds each page on the server when it's requested, usually with caching to speed that up. It can also be used headless, as a content source for a static site. Our headless CMS guide explains how.

Are static websites more secure?

Generally, yes. Visitors receive only files, so there's no code, login or database facing the public on the website itself. Forms and other services still need securing where they run.

What is Jamstack?

Jamstack is a name for building websites as static pages, separate from the data and business logic behind them, which the pages reach through APIs when they need to. It's the pattern described in this guide.

All posts