Skip to content

pesto-students/p4-rajesh-mr-rego

Repository files navigation

The Rego Zone

Welcome to The Rego Zone. Here's where I'm going to learn stuff... hopefully :)

How Does A Damn Broswer Work?


-1. Navigation.
Here's where you enter the website into the address bar of your favourite browser.

Navigation

DNS Lookup is where the your browser is going to start searching for the IP address of the website. For eg. www.heyip.com will be returned as 101.25.101.74. Once that's in the box, there's an 8-step process to be completed. The TCP handshake takes up 3 steps to negotiate and start the TCP session between your broswer (computer) and the web server, and the TLS Negotiation takes the remaining 5 to determine the communication encryption, server verification and a secure channel for communication.


-2. Response
Once your computer and webserver have decided to talk, the web server sends a response, typically in HTML.

Response

The first packet is 14KB, which is part of TCP Slow Start. After receipt of the the 14KB packet, the server increases the size of consequent packets till the optimal bandwidth is utilized, mostly doubled everytime. Make sure you have a good internet connection. I use ACT... not an ad for ACT :)

Congestion control ensures that the server doesnt send too many packets quickly, else these are going to be dropped if your computer can't handle it.


-3. Parsing
The good stuff, what we've come to Pesto for.

Parsing

Here's where the magic happens, the browser starts building the DOM and CSSOM trees, along with trying to load the JS, images and other linked resources (thru the preload scanner).
The Accessibilty Tree is also built here, so make sure you use Semantic tags! I've learned this thanks to Pesto.


-3. Render
The final stage, mostly semi-final. Actual final stage to be explained in the last line.

Render

This is where tthe broswer starts drawing the elements to the screen, using the layouts and styles and scripts from the previous step. Lots of stuff happening here, and this is where I kept getting stuck in the W1 assignment.

The final stage is Interactivity, where when everything is loaded, you can start interacting with the website.

Hope you enjoyed this, and now have a fair idea of what that browser does!

About

p4-rajesh-mr-rego created by GitHub Classroom

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published