DEV Community

Discussion on: Why static sites are back

Collapse
 
zaidchauhan profile image
Zaid Chauhan

Apart from SEO, why we should invest in server side rendering if we can utilize client (visitor) machine for computation for client side rendering?

Frankly, to me it looks like the trend has been started to monetize hosting business.

Collapse
 
debs_obrien profile image
Debbie O'Brien

yes, great question. If only we could just get rid of the servers but sometimes it is good to have server side rendering for large e commerce sites for example as you need constant data changes per minute and don't want to or can't regenerate the site for every single change. There are ways around this sometimes. For example with Nuxt.js you can have a static site that has part of your site as a spa with a spa fallback so for a travel agent you could have a static site with all the hotel details as static but the booking engine page could be a spa inside the static site and that will be rendered client side and as the results of your search don't need seo a spa fallback works perfect here. hope that helps

Collapse
 
zaidchauhan profile image
Zaid Chauhan • Edited

Thanks for more details, but you can get the same result with something like socket.io (or any bidirectional communication) and that also without regenerating site on client or server side.

It's cool to build static webapp or app with server side rendering, but the usecase (need) is very narrow.