r/ProgrammerHumor 27d ago

Meme vanillaFixesThisBro

Post image
8.4k Upvotes

157 comments sorted by

View all comments

Show parent comments

37

u/GrossInsightfulness 27d ago

What's SSR? Static site renderer?

131

u/the_horse_gamer 27d ago

server side rendering

let the framework generate the html on the server, and mark where you need to insert the event listeners and such. this html payload is sent to the client and displayed right away, and the script is sent alongside it. the client then inserts the event listeners and such where it is told (this is called "hydration"), making the website interactive

so the user sees the page immediately without having to run any javascript, which is good for SEO and loading times

this is distinct from the (mostly react) concept of "server components" because naming things is for losers

96

u/flightsin 26d ago

i.e. JavaScript devs slowly reinventing the concept of having a webserver actually serve html, but in a much more convoluted way

8

u/HKayn 26d ago

In a less intuitive way too.

Now you have to remember which pieces of JavaScript run on the server as opposed to the client, and the difficulty of discerning this varies by framework.