Nowadays everyone owns a Pc or a laptop for their work or just for Netflix and chill!
But Have you ever wonder what happens in the background when you type in a random URL in the address bar π of any web browser.
This is how it works after clicking the search button:
- The browser looks up the IP address for the domain name via DNS.
- The browser sends an HTTP request to the server.
- The server sends back an HTTP response.
- The browser begins rendering the HTML.
- The browser sends requests for additional objects embedded in HTML (images/pngs/gifs, CSS, JavaScript) and π steps 3β5.
- Once the page is loaded, the browser sends further async requests as needed.