Prerender for better UX
There's a static site generator now for just about every programming language. Generally, they work with a file structure that renders all the subsequent pages of a website in one go.
Unlike classic server-based websites that require scripts and databases, a static site generator doesn't require costly server queries.
This means your content loads faster and you improve the user experience.