• 0 Posts
  • 9 Comments
Joined 1 year ago
cake
Cake day: July 16th, 2023

help-circle







  • The difference between generating JSON and generating HTML is minimal for the server

    That should be true, but have you looked the HTML of any “modern” site? Dozens of nested elements, each tagged with multiple lines of attributes. Generating that is probably 10x the cost of generating the JSON.

    Plus, with server side rendering you also have to recompute the HTML for the entire site, which often means re-computing a whole bunch of non-trivial queries as well.