What happens when you type in a URL in the address bar of a browser

Vamsi K
Nov 5, 2020

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:

  1. The browser looks up the IP address for the domain name via DNS.
  2. The browser sends an HTTP request to the server.
  3. The server sends back an HTTP response.
  4. The browser begins rendering the HTML.
  5. The browser sends requests for additional objects embedded in HTML (images/pngs/gifs, CSS, JavaScript) and πŸ” steps 3–5.
  6. Once the page is loaded, the browser sends further async requests as needed.
HTTP request/response image.
The HTTP request/response cycle.

--

--