4
What is the best way, the best performance, to generate the final HTML. Direct in server-side or receive the database data and generate the HTML in client-side?
In the development of my current application, I came across this doubt, by receiving the data from the server and then generating much of the HTML in Javascript.
It depends, roughly, if the HTML you refer to is the whole page, it is more worth generating on the server, now if you need to update only a part of the page after it has loaded, it is less expensive to update only the necessary part via AJAX.
– Kazzkiq