DEV Community

Discussion on: What is React Server Side Rendering and should I use it?

Collapse
 
misterhtmlcss profile image
Roger K. • Edited

I'm just making this up in my head, because I'm pulling together random bits and pieces I've been reading all over, but with http2 isn't possible to do something clever with say splitting up the code so your initial paint is done with a smaller JS bundle and then it progressively loads the rest of your JS payload? It just seems this is something doable from all the bits and pieces I've read around the web. I just don't know if it's something that could be tied together and for a React scenario.

Collapse
 
mladenstojanovic profile image
Mladen Stojanovic • Edited

Yes, of course! :) There are techniques like tree shaking etc. which you can achieve through webpack, to reduce your client side payload, I am by no means an expert and 'know-it-all', that's why I wrote that people should probably first try to optimize their client side application as much as they can before attempting to go in to the dark side of server side rendering :)