Architecture

Static HTML or a framework? Why my personal website has no build step.

I write Laravel for a living, yet this site is plain HTML, CSS and one small script. The real trade-offs of static sites: speed, upkeep and repetition.

Key takeaways

  • A site with no database, login or per-user content does not need a server-side framework.
  • Plain HTML is fast, cheap to host and has almost nothing to patch.
  • The real cost is repetition: shared header and footer are copied into every file.
  • Choose a framework when content volume, editors or dynamic features outgrow hand-edited files.

The decision

I write Laravel for a living, so reaching for a framework would have been the easy default. I did not, because this site has one job: put text, images and structured data in front of a browser as quickly as possible. Nothing on it needs a database, a login or a server-side render. The scope document I wrote before building it says so plainly: static HTML, CSS and JavaScript, no framework, no build step.

What "no build step" means in practice

Every page is an .html file I can open in an editor and read. There is one stylesheet for the shared design, a small stylesheet per project for its accent colours, and a single script for the menu, theme toggle and blog filter. There is no bundler, no package install and no compile. What I write is what the server sends.

What it buys

  • Speed. A static file served by Nginx is about the fastest response a site can give, and there is no application code between the request and the file.
  • Low running cost. A small VPS handles it comfortably.
  • A tiny attack surface. No admin login, no database and no plugins mean far less to keep patched.
  • Durability. A static file written today will still open in ten years. A framework version might not.
  • Honest performance. Hitting a high PageSpeed score is a matter of not adding weight, rather than removing it.

What it costs

The honest cost is repetition. The header, navigation and footer are copied into every page, so changing a nav link means editing every file. That is manageable at a few dozen pages and gets irritating at a few hundred.

I tried to solve it once with PHP includes, then reverted the change the same day. A switch I had not tested end to end was riskier than the repetition it removed. If I bring templating back, it will be a separate, tested change, not a same-day flip.

There are other costs too:

  • No built-in search across the site.
  • No content editor. Adding a blog post means writing HTML. I use a small script to generate posts from Markdown, which is a reasonable halfway point.
  • No comments or forms without third-party services.

When a framework is the better choice

Choose a framework or a CMS when:

  • Non-technical people need to publish content without touching code.
  • You have hundreds or thousands of pages with shared templates.
  • You need user accounts, dashboards or personalised content.
  • Content comes from a database or an API.

For client sites like a coaching institute's platform, an admin panel was essential. For a personal site that I maintain alone, it is not.

A middle path

If you like the static approach but want less repetition, use a static site generator: you write Markdown and templates, and a build step outputs plain HTML. You get the speed of static files with the convenience of templates, in exchange for a build step.

Would I do it again?

For this site, yes. It matches the work: a site about shipping software should itself be light, fast and clear about what it does. If it grew to hundreds of pages, I would add a generator before reaching for a full framework.

Frequently asked questions

Is static HTML bad for SEO?

No. Search engines read HTML well, and fast pages help. What matters is good titles, descriptions, headings, internal links and content, which you can do in any stack.

Can a static site have a blog?

Yes. Each post is a file, plus an index page. A small generator or a few templates keeps it manageable.

Do I need JavaScript at all?

Only for interactions. This site uses a little for the menu, the theme toggle and the blog filter, and the pages work without it.

Building a site that has to stay fast and cheap to run?

Get in touch