I have experience in best practice / performance. I am creating an ASP.NET MVC 2 project, and I have several parts of the page that are accessed dynamically either during loading or when interacting with the user.
My question is this: is it better to have the sections displayed in HTML on the server and then just replace the HTML sections or is it better to just get the information as JSON objects and then use JS to create and paste the HTML?
It should be noted that the objects of problems are very simple in nature. An example is the message object, which has an identifier field, a field, a field, a topic field, and a body field that are integer.
Are there any major advantages or disadvantages to any approach? Or is this a preferred example of how to create your application?
performance javascript html asp.net-mvc
Dave
source share