The static website truly started as strictly static HTML files within the 90s. Yes, there have been larger applications that ran on Perl or Java; however HTML was the fastest method for anyone to publish content on-line.
Static sites were meant to deliver content quick. HTML pages are parsed directly by an internet browser, therefore hypertext transfer protocol latency is that the largest issue for load time.
With the expansion of CMS engines, managing load time became a worthy issue. Developers required worrying regarding database query time and bulky templates. Caching helps however it seldom delivers an equivalent performance as a static webpage.
This fixation on static sites has come back at a time once content management systems appear too bloated for smaller projects. It’s nearly just like the internet business has come back full-circle, realizing the advantages of static HTML pages – however now we have rather more powerful tools at our disposal.
Static websites by definition are created to handle traffic. There ought not to worry regarding caching or database throttles that may weigh down loading times.
To put it all at once, this renewed appreciation for static sites has arisen from:
Improved internet browser capabilities
Support for preprocessing like Sass/Less and Haml/Jade
Several free third party solutions for dynamic content
Static website generators build web site creation fast and economical
Advantages over Dynamic Websites
Static websites don’t have any dependency on any database. Static sites are not looking ahead to database connections, and definitely not dealing with database errors.
Similarly a static website doesn’t consider any backend language. You don’t want a server with PHP, Rails, Python, Node, or something aside from the server’s core options. A static website simply loads static content and will precisely what the web was created to try to do.
Similarly take into thought the safety considerations levied against a dynamic web site. Though internet security has improved over the years, malicious hackers will still get into WordPress and different systems through database injection or improperly designed plug-ins/themes.
Here’s a short set of benefits for working with static sites over Dynamic sites:
HTTP requests load quicker with static content compared to dynamic content
Static websites are safer with fewer points of vulnerability (no database or backend scripts)
Static website generators provide comparable tools to dynamic CMS (e.g. templating, partials, preprocessing)
Learning to use a static website generator is simpler than learning a full CMS
No database or backend server necessities
Static Generation Drawbacks
Since not each project will have the benefit of a static website generator you’ll wish to think about these potential drawbacks:
No GUI or visual backend for editing pages; each static page should be edited manually
Building themes for a static website generator takes time unless you already recognize a templating language
New pages should be pushed up to the server each time
You’ll need to get snug using the terminal
There is no right or wrong answer and ultimately it’s up to the developer to come to a decision what’s best for every project.
Popular Static web site Generators
What guide would be complete while not a glance into the most effective static website generators? With such a lot of choices to decide on from it may be overwhelming – particularly for a developer who’s never used a static site generator before.
The following tools are not the sole choices obtainable; however they’re a number of the foremost widely-used and most popular generators up to now. Everyone has its own distinctive setup and methodology therefore analysis a number of to seek out one that best fits your wants.
Free web site Generators