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
Is it a URL or a search term?
Check HSTS list
Convert non-ASCII Unicode characters in hostname
Opening of a socket
HTTP Server Request Handle
Behind the scenes of the Browser
Post-rendering and user-induced execution