Browser & Web Performance · Junior · Question 1 of 75
You type a URL and press Enter. Which order of steps is closest to what the browser does first?
- 1HTTP request, DNS lookup, rendering, then the TCP connection
- ✓Correct answer: DNS lookup, TCP (and TLS) connection, HTTP request, then parsing the HTML response
- 3Parsing HTML, DNS lookup, HTTP request, then the TLS handshake
Explanation
The browser must resolve the host name to an IP, open a connection (plus TLS for HTTPS) and send the request before it gets any HTML to parse.