WEB application lifecycle

--- --- restore content begins

It is divided into three stages, namely  a request response phase , page builder phase , and event processing stage .

Request response phase

Request response phase is generally, when the user inputs the request url address label or click a hyperlink, the browser will request is formed and sent to the server, the server response is given.

Page Construction Phase

Page build phase is when the browser to get the HTML css js code, it will render pages, main tasks is to render the structure of the DOM, HTML and js will work like a relay race with the completion of the same. When the tag in HTML

When it came to the script tag, js will be executed, the code execution to the last, HTML and picked up the baton. So the cycle to complete the life cycle of the application rendering WEB page

  • DOM tree features: In addition to the first node (html root), all nodes have only one parent, at the same time, a node can have multiple child nodes, called sibling nodes with each other between these children
  • Although DOM is based on HTML to create, the two are closely related, but not the same, HTML code browser page UI to create the initial DOM

Guess you like

Origin www.cnblogs.com/weikemudan/p/11123176.html