Static generation - jaredgorski.org

Static generation

Static generation is a kind of Rendering which happens when HTML is written or generated prior to its deployment to a server. In other words, a statically generated website exists in HTML form on the server, rather than being generated on the server or on the client. Instead, it’s generated at build-time.

Static websites have the advantage of speed, since the HTML is already built when it’s requested by a client. However, static webpages cannot be generated with dynamic data, unless that data is available at build-time.

This website is statically generated. The writings, notes, and other content on this site are only updated at build-time.

Advantages:

  • Speed
  • SEO. Websites arrive to the client as HTML, so web crawlers can easily read the website’s content.

Disadvantages:

  • Cannot serve dynamic data