First, front-end rendering
Definition: The front-end pre-defined good HTML, and then back-end request data, get the data (XML, JSON, etc.), through JS to load the data.
Advantages: Save network traffic, facilitate SEO, save some server resources.
Disadvantage: The front-end processing of data is time consuming, may cause suspended animation.
Example: Easyui
Second, back-end rendering
Definition: Renders a good HTML page on the backend and sends it directly to the browser display.
Advantages: The front page load quickly, no data processing process.
Disadvantage: Consume server resources, network data is expensive.
Example: freemaker,velocity,jsp
PS: Before learning the template engine such as JSP to hear the pure front end friend mentioned by the form of Ajax to get the return of the JSON processing, there is a question, the difference between the two, after the search for information today finally clear.
Have the best time to solve the problem, the worst also tell yourself, I have this question, can not choose to ignore and forget.
Front-end rendering and back-end rendering