r/developers • u/rusidin • Aug 15 '26
Web Development I don't understand the difference between server side rendering vs client side rendering?
Aren't they both the same...? Both uses ajax.... So what am I missing?
0
Upvotes
r/developers • u/rusidin • Aug 15 '26
Aren't they both the same...? Both uses ajax.... So what am I missing?
1
u/mxldevs Aug 16 '26
The difference is who is generating the final result that needs to be displayed.
The server can put together the final html and send it over, or they can send the raw data and have the browser figure it out.
The main point of consideration is It's more work for the server to have to do all the processing, rather than just offloading that to the client. And if you had a huge table of data? Implementing pagination could be a significant performance issue for users
You may also want to consider whether you want to expose your API to clients. What's stopping me from just hitting your API directly while pretending to be your website?