본문 바로가기

공부 기록/Web

Brower의 동작

*  How Browsers Work: Behind the scenes of modern web browsers
https://web.dev/howbrowserswork/

 

How browsers work

 

web.dev

 

 


 

 


 

Rendering engine basic flow

  1. Parsing HTML to construct the DOM tree
  2. Render tree construction
  3. Layout of the render tree
  4. Painting the render tree

 

Parsing

  • 문자 단위로 하나하나 해석, 의미를 파악하여 어떠한 데이터 객체로 구조화시키는 것
  • To parse is to break up a sentence or group of words into separate components, including the definition of each part's function or form. The technical definition implies the same concept. Parsing is used in all high-level programming languages.

 


 

Webkit main flow

  • Render tree : The render tree is a culmination of the DOM and CSSOM trees. The render tree is the one that is actually rendered onto the page. / The render tree holds all the visible nodes with content and computed styles — matching up all the relevant styles to every visible node in the DOM tree, and determining, based on the CSS cascade, what the computed styles are for each node.

DOM tree (HTML parsing)

<html>
  <body>
    <p>
      Hello World
    </p>
    <div> <img src="example.png"/></div>
  </body>
</html>

⬇️


 

CSS Parsing

'공부 기록 > Web' 카테고리의 다른 글

WAS (Web Application Server)  (0) 2023.01.19
웹 서버 (Web server)  (0) 2023.01.19
HTTP protocol  (0) 2023.01.17
URI 설계 원칙  (0) 2023.01.17
REST API  (0) 2023.01.17