How the Browser Renders a Web Page
browserwebperformancehtml
Understanding how browsers render pages helps you write faster websites. The process has several distinct steps:
- DNS Lookup — the browser converts the domain to an IP address
- TCP Connection — a connection is established with the server
- HTTP Request/Response — the browser fetches the HTML
- Parsing HTML — the browser builds the DOM tree
- Parsing CSS — the browser builds the CSSOM tree
- Render Tree — DOM + CSSOM are combined
- Layout — the browser calculates positions and sizes
- Paint — pixels are drawn to the screen
Knowing this process helps you understand why render-blocking scripts slow things down and why CSS should be in the head.
Sponsored
Comments0
No comments yet. Be the first!