What happens when you type google.com into your browser’s address box and press enter?

What happens when you type google.com into your browser’s address box and press enter?

This repository is an attempt to answer the age old interview question “What happens when you type google.com into your browser’s address box and press enter?”

Except instead of the usual story, we’re going to try to answer this question in as much detail as possible. No skipping out on anything.

This is a collaborative process, so dig in and try to help out! There’s tons of details missing, just waiting for you to add them! So send us a pull request, please!

This is all licensed under the terms of the Creative Commons Zero license.

The “g” key is pressed
The “enter” key bottoms out
Interrupt fires [NOT for USB keyboards]
(On Windows) A WM_KEYDOWN message is sent to the app
(On OS X) A KeyDown NSEvent is sent to the app
(On GNU/Linux) the Xorg server listens for keycodes
Parse URL
Is it a URL or a search term?
Check HSTS list
Convert non-ASCII Unicode characters in hostname
DNS lookup
ARP process
Opening of a socket
TLS handshake
HTTP protocol
HTTP Server Request Handle
Behind the scenes of the Browser
Browser
HTML parsing
CSS interpretation
Page Rendering
GPU Rendering
Window Server
Post-rendering and user-induced execution

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s