System Design · Junior · Question 1 of 75

What happens when a user types a site's address and presses Enter?

Explanation

The browser resolves the IP via DNS (with caches at every level), establishes a connection and the TLS handshake, sends the request, receives HTML, parses it, loads CSS/JS/images, builds the DOM and CSSOM, and performs layout and paint. It's the classic opening question for a performance discussion.

Further reading

Problem with a question

System Design · Junior · question 1

Test yourself

Take the System Design · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz