Skip to main content
>_ supraj.dev
TOPIC NETWORKING
HTTP Request Lifecycle what happens when you hit Enter
IN 10 SECONDS

From typing a URL to rendering the page: DNS lookup, TCP/TLS handshake, sending the HTTP request, backend routing, receiving the response, and browser rendering.

GOTCHA Slow page loads are often not the backend — they are too many blocking scripts and CSS stylesheets in the HTML head.
HOW THE LIFECYCLE FLOWS
01 DNS Resolution browser converts the hostname to an IP address.
02 Handshake browser establishes TCP connection and completes TLS handshake.
03 HTTP Exchange browser sends the HTTP request; server processes it and replies with HTML.
04 Render browser parses HTML, fetches static assets, and builds the page.
POKE IT YOURSELF
curl -w '@curl-format.txt' -o /dev/null -s https://supraj.dev — print timing breakdown for DNS, TCP, TLS
dig +trace supraj.dev — trace DNS path