
When the browser receives the HTML data from the server, it immediately parses it and converts it into a DOM tree.
The styles (CSS files) are loaded and parsed to the CSSOM (CSS Object Model).
<head> or tags with display:none;). In other words, the render tree is a visual representation of the DOM.The content in each element of the rendering tree will be calculated to get the geometric information (position, size), which is called layout.
After the layout is complete, the rendering tree is transformed into the actual content on the screen. This step is called painting. The browser gets the absolute pixels of the content.
Finally, the browser sends the absolute pixels to the GPU and displays them on the page.
When the browser receives the HTML data from the server, it immediately parses it and converts it into a DOM tree.
The styles (CSS files) are loaded and parsed to the CSSOM (CSS Object Model).
<head> or tags with display:none;). In other words, the render tree is a visual representation of the DOM.The content in each element of the rendering tree will be calculated to get the geometric information (position, size), which is called layout.
After the layout is complete, the rendering tree is transformed into the actual content on the screen. This step is called painting. The browser gets the absolute pixels of the content.
Finally, the browser sends the absolute pixels to the GPU and displays them on the page.