Services rendered to the front end rendering, to "server-side rendering"

web earliest period

If you want to render dynamic pages, before the earliest time can ssr.
The server data + html rendered into a full web page, sent to the front end. This time the web simply display information.

There are interactive web

And then found the site just is not enough data to show there is also the need for interactivity.
Work interactivity to the JS to complete this period in addition to the above server back-end code to read data, but also mixed with a lot of JS code.

Before and after the separation of the web

Mixed with JS code is not conducive to maintaining back-end, front-side code separated into their thoughts and feelings. (Server to do the bulk of data rendering calculations also waste resources of the server)
and a problem facing the front and rear ends of the code-required data communication is the problem, how dynamic data transmitted to the rear end of the front end.
Then Ajax (Later fetch) has been proposed, Ajax can request asynchronous data, allowing users to feel more smooth when browsing the web. Ajax not only solved the problem of data communication, so that the front and rear ends of the splitter (front and rear ends of the parallel development) possible, but also with enhanced (asynchronous loading) on the user experience.

SPA appear

And the rise of the extreme ends of each mobile interactive experience, SPA fledgling start.
SPA is close to Native App, in addition to the problem of slow loading for the first time (this depends on how to achieve, but also to avoid the slow initial loading solution). After the operations are not required to refresh the entire page, but only updates some of the components.
Make users feel faster, better experience.

SPA problems caused by

SPA SEO and brought the first load is too slow.

Server to render the strong interaction of the web.

This time, the service has been rendered different from the previous end server-side rendering.
Previous server data dynamically rendering just want to show on the page. Regardless of interactive web, the implementation is also achieved by the backend staff.
But now the situation is that we not only need to have a interactive web, and the web application is generated by the backend good.
It must be isolated and further front and rear ends, the code can not have jumbled. Also, ssr achieve this is by the front end staff to complete.

历史的车轮感觉又转回去了,但是意义完全不一样。
技术就像是螺旋上升的。

Guess you like

Origin www.cnblogs.com/jlfw/p/11874524.html