Glossary termWeb architecture

Static Site

Also known as: Static website, Static web page

Website made of prebuilt HTML, CSS and JavaScript files served exactly as stored, without generating pages on a server for each visitor.

A static site is a website whose pages exist as ready-made files on a server. When a visitor requests a page, the server simply sends the stored HTML, CSS, images and scripts, without querying a database or running application code to assemble the page. Every visitor receives the same files, although JavaScript can still add interactivity in the browser. The earliest websites were static by default, written by hand as HTML files; dynamic sites that build pages on request with server-side languages and databases came later.

Static site generators revived the approach for larger sites. A generator takes content, often written in Markdown, combines it with templates and outputs a complete folder of HTML files that can be uploaded anywhere. Jekyll, created by Tom Preston-Werner and released in 2008, became widely used through its integration with GitHub Pages; Hugo, Eleventy and Astro are other popular generators. The term Jamstack, for JavaScript, APIs and markup, was later coined to describe sites prebuilt as static files that call APIs for dynamic features.

Static sites are fast, inexpensive and comparatively secure. Prebuilt files can be served from a content delivery network close to each visitor; there is no database to breach or application server to patch; and hosting is often free or cheap, which suits Self-Hosting, documentation, blogs and digital gardens. They fit reference works whose content changes through editing rather than user input. The main limitation is dynamic behavior: comments, search, personalized content and frequently changing data require client-side scripts, external services or rebuilding the site when content changes.

Key points

  • A static site serves prebuilt files directly, without assembling pages on a server for each request.
  • Static site generators such as Jekyll and Hugo turn Markdown content and templates into complete websites.
  • Static sites are fast and have a small attack surface, since there is no database or application server.
  • Dynamic features require client-side scripts, third-party services or rebuilding the site.

Related entries

Technology

HTML

Programming

Markup language used to structure content on the World Wide Web, describing headings, paragraphs, links, images and interactive elements.

Glossary term

Markdown

Programming

Lightweight markup language that uses plain-text conventions such as asterisks and pound signs to format text that converts easily to HTML.

Glossary term

Geographically distributed network of servers that caches and delivers web content from locations close to users to improve speed and reliability.

Glossary term

Self-Hosting

OPSECFOSSDevOps

Practice of running one's own servers and software for services such as email, file storage or media instead of relying on third-party platforms.

Glossary term

Digital Garden

Ideas and CultureProgramming

Personal website of interlinked, evolving notes and essays, tended over time rather than published as a dated chronological blog.

Glossary term

Web application that loads a single HTML page and then updates its content with JavaScript instead of loading fresh pages from the server.

Technology

GitHub

ProgrammingFOSS

Web platform owned by Microsoft for hosting Git repositories and collaborating on software through pull requests, issues and automation.

Technology

CSS

Programming

Style sheet language that controls the layout, colors, typography and visual presentation of HTML documents on the web.

Referenced by

Other entries that discuss or point to Static Site.