FromEnteringUrlToPageRendering
- The user enters the url address and resolves the IP address from DNS
- The browser sends an http request to the server, and if the server segment returns a redirect such as 301, the browser sends the request again based on the location in the corresponding header.
- The server accepts the request, processes the request to generate html code, and returns it to the browser. In this case, the html page code may be compressed.
- The browser receives the response from the server, and if there is compression, it is decompressed first, followed by page parsing rendering.
Parse the rendering process:
- Parsing HTML
two。 Build a DOM tree
- DOM tree is attached to CSS style to construct rendering tree.
- Overall Arrangement
- drawn