当前位置:网站首页>Server rendering

Server rendering

2022-06-25 10:35:00 m0_ forty-nine million four hundred and seventy-one thousand si

stay Server side Good rendering Again to browser Namely Server rendering , Like before jsp page , What will be written html The template is sent to the browser

Server rendering : The server directly renders the corresponding html page , Return to the client for presentation , such as jsp page

benefits : The front end takes less time , Reduced first screen time , Use less client resources Disadvantage : The server is under great pressure

Front end rendering : The network requests to get data and render it to html On the page , such as SPA page ( That is to say vue-cli Built page )

benefits : Long first screen time , The page will not be reloaded after it is loaded , Less data requests , Fast . Server pressure is low , Just use the data ,

Disadvantage : The front end takes a lot of time , High requirements for front-end personnel , There are many front-end codes , Because the logic of the interaction part in the back end is handed over to the front end , Some client resources are used for parsing .

原网站

版权声明
本文为[m0_ forty-nine million four hundred and seventy-one thousand si]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/176/202206251014391190.html