JavaScript works on the Web server side:
1. The client requests data, that is, we enter a URL in the address bar while surfing the internet, and after the browser receives the data, the request message is sent to the remote Web server.
The 2.web server responds to the request, the Web server finds the requested data, and sends the entire page containing the JavaScript script code as the corresponding content, which is sent back to the client machine.
3. The client browser interprets and executes the code with JavaScript script, the client browser opens the Web page data content of the response, reads and displays the HTML or script code from top to bottom, and completes the corresponding action according to the HTML tag that is parsed. The script is downloaded from the server side to the guest
The client, and then the clients do not occupy the server-side resources, so through client script, the client shared the server's tasks, greatly reducing the pressure on the server, thereby indirectly improve the performance of the server.
Cond......
A probe into the operating principle of JavaScript