Where is better for render HTML when use NodeJS server?

If I want to serve web page that shows table of some contents, I have two option.

  1. When client request page, Node server just response with JSON data and script for draw HTML table. And draw table in client side with Javascript.
  2. When client request page, Node server render all of HTML code for table and response the code to client. So client will receive full HTML.

Which one is better way to render page? I have not enough skills about front-end so confuse what to do.

17 thoughts on “Where is better for render HTML when use NodeJS server?”

Leave a Comment