Dynamic vs SPA vs Static Websites
Static:
- HTML pages were pre-generated and are stored as such on the server.
- The most usual example of a static website is to develop a webpage in the absence
of a rear-end. Blogs, documentation, and website designing are the most regular
usage of static websites.
Dynamic:
- HTML pages are created dynamically, on the server - with the help of a server-side
programming language and typically also a “templating engine”.
- Common examples are e-commerce websites, using servlet technology.
SPA:
- The server returns one single, pre-generated HTML page which in turn contains
JavaScript code that changes the page dynamically in the browser. Data usually
fetched via web APIs.
- Common exmaples: ReactJS, Angular, etc..