TIL how a url goes gets data from the internet
POSTED ON:
Ever wonder what happens when you type a url in a address bar in the browser? Follow this handy guide!
In text form:
- We'll start with a Url.
- That url gets turned into a IP address via the DNS server.
- We start a TCP connection to get approval. (SYN, SYN-ACK, ACK)
- Once approved, we'll make a HTTP request to the world wide web.
- That gets the header.
- That gets the responses and payload.
- The payload becomes data (HTML, CSS, JS)
- The browser puts together the data (parsing HTML, making a dom tree, making a CSSOM tree, sprinking Javascript)
- The browser adds any final touches.
- Finally it gets to you.
via Wassim Chegham
Related TILs
Tagged: browser