You’ll often hear developers talk about static vs dynamic websites, but what do they mean, exactly? Let’s find out!
A static site is also defined as a website where the content is the same for every visitor. On a dynamic website, content can change depending on the viewer (as on any social platform, e.g. Facebook).
Static sites generally have tiny light-weight codebases compared to dynamic sites, such as WordPress which is often bulky and bloated in comparison (it’s still a great product for other reasons).
Static sites generally load fast because they don’t have to spend time loading a huge code bundle or render from a server which dynamic often websites do.
It’s not a black and white topic though. In modern times, you can get the benefits of a blazing fast static site, by using a Static Site Generator (SSG) which provides dynamic functionality options as well (seamless transitions, authentication, data calls etc.) e.g. by using a React framework like GatsbyJS or Next.js.