System Design: Typing Google.com Explained

Ever wondered what exactly happens when you type google.com into your browser's address box and press enter?
- The "g" key is pressed
- The "enter" key bottoms out
- Interrupt fires (NOT for USB keyboards)
- (On Windows) AWM_KEYDOWN message is sent to the app
- (On OS X) AKeyDownNSEvent is sent to the app
- (On GNU/Linux) the Xorg server listens for keycodes
- Parse URL
- Is it a URL or a search term?
- Convert non-ASCII Unicode characters in hostname
- Check HSTS list
- 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