DEV Community

Discussion on: How we reduced our initial JS/CSS size by 67%

goenning profile image
Guilherme Oenning Author

You mean the common bundle? It does depend on vendor bundle (which contains React and reactdom), which is why on the html we import the vendor bundle before the common

Thread Thread
ajayposhak profile image
Ajay Poshak • Edited on

And what about Server Side rendering then? While doing SSR, I need react's renderToString function on server so I have to install react anyways. I am curious to know how did you do it?

Thread Thread
goenning profile image
Guilherme Oenning Author

I don’t have Node.js on the server side, so SSR is very hard to me. So I’m planning to use puppeteer to do prerender for crawlers.

Thread Thread
daniel15 profile image
Daniel Lo Nigro

You don't necessarily need Node.js for server side rendering. It's likely your preferred server side language has some JavaScript engine you could use.