What is server-side rendering?
Since the start server-side rending has been used to get the HTML up on the screen. In your server, once the .html pages are fully loaded they will then be turned into documents displayed on the browser.
Server-side rendering means the ability to render the web pages on the server instead of rendering them in the browser. When a user visits a website, the web browser then proceeds to submit a request for the contents of the website from the server, which in turn will respond by a fully rendered page for the requested side. The speed of request is usually affected by internet speed, traffic of the site, the design on the site, and the location of the server. Another request is made from the browser if a different page is clicked on where the process will repeat. Search engines in a browser can extend and locate content before delivery which provides advantages for optimization purposes
The benefits of Server-Side Rendering
- A server-side rendered site enables faster run time which would, in turn, reduce users’ visit time in the site. This will decrease the chances of traffic piling up on the site.
- Search engines can easily identify and locate the content because the content can be rendered before the page is ready which is ideal for the optimization
- Webpages can be located correctly through their corresponding indexes with the web browsers web page load time being lower
- Allows efficient load time thus enabling users with slow internet or outdated internet service to be able to load the page
The disadvantage of server-side rendering
- Due to it not being the default for JavaScript websites it may take larger resources to take on the rendering of content for users
- Rendering larger, complex sites may cause longer load times.
- Extended JavaScript code may not be compatible with server-side rendering
- Static site is ideal for server-side rendering but this could not be said so when dynamic sites come into play.
- They are generally expensive to the host, as each request from the client-side will be tied to one or multiple API calls. Only after this process is done will the rendering of the HTML happen and be sent to the user.
Reference
What is server-side rendering? (2021). Retrieved from https://www.omnisci.com/technical-glossary/server-side-rendering