DEV Community

Discussion on: How do I choose which SSR strategy to adopt?

Collapse
 
igorfilippov3 profile image
Ihor Filippov • Edited
  1. Jquery is not for CSR, it is for SSR. Because in most cases Jquery do not produce a big amount of DOM elements, but joins to the existing one.
  2. SSR is not new technology. It was invented many-many years ago

  3. SEO. Unfortunately, when you deal with React, Vue or Angular SSR is not silver bullet. Despite of the fact that most of html content is rendered by server, you anyway have a very big js bundle which is loaded / parsed / exectuted at the client side. So it is very difficult to make perfomance metrics good.
    Yes, you can improve perfomance of your site, but good old approach with MVC and thin js client is more efficient.
    Maybe at least Sapper/Svelte can show good results.

Collapse
 
mfrachet profile image
Marvin • Edited

Thanks for these precisions and insights :D. I appreciate you shared these and challenge the ideas!

Additional thoughts and clarifications

1/ I was meaning that jQuery only runs on the client. But I totally agree it's really great for SSR oriented apps!

2/ I didn't want to spread that SSR is new, it was not my intention, sorry if I mis-explained that. I wanted to point that it's a big trend since we see big players like Sapper, Next, Nuxt, Gatsby and so forth spawning everywhere on social medias :)

3/ Good point! Also IIRC, I think that Gatsby and Next has approaches to spawn lightweight client side apps to avoid loading big chunk on the client. It's always loading an app, but it's supposed to be smaller

Feel free to re-challenge, I like learning :D !