The web page scrolls to load news, can node.js render it on the node server? The specific steps are What?
Server rendering refers to the generation of html code strings in the node server?
Ask the great god for advice! !
Yes. Using the template engine, after rendering the HTML fragment, return it to the front AJAX and append it to the page.
However, this work may be put on the front end to do it more appropriately, which can reduce the pressure on the server.
Since you are using node, the rendering logic and front end of the server can be common, including the template engine library used.