What happens when is a large collaborative documentation-style project that aims to answer in exhaustive detail the canonical interview/thought experiment question, “What happens when you type google into your browser and press Enter?” Rather than giving a high-level overview, the repository tries to break down every step in the process, from low-level events (keyboard press, OS events, keyboard interrupts), through OS-level handling (keyboard scan codes, key events), parsing, DNS lookup, networking (ARP, socket creation, TCP/TLS handshake), HTTP requests, browser behavior, HTML/CSS/JS parsing, rendering engine, GPU rendering, layout, to final drawing and user-visible output. The goal is to serve as a comprehensive resource for students and engineers to understand what happens under the hood, bridging from hardware and OS level up through network and application layers.

Features

  • Deep, step-by-step breakdown of what happens when you enter a URL and press Enter (keyboard → OS → network → browser → rendering)
  • Covers low-level OS/hardware events (key press, interrupt handling), network protocols (DNS, socket, TLS, HTTP), browser internals (parsing, rendering, layout, GPU, DOM, JS execution)
  • Multi-language README — available in multiple human languages (English, simplified Chinese, Japanese, Korean, Spanish) to reach diverse developers
  • Collaborative and community-driven: open for contributions to fill missing steps, correct details, expand explanations
  • Licensed under Creative Commons Zero (CC0), making it free to reuse and redistribute without restrictions
  • Serves as educational resource — useful for interviews, teaching, understanding web stack internals

Project Samples

Project Activity

See All Activity >

Categories

Education

Follow What happens when

What happens when Web Site

Other Useful Business Software
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of What happens when!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Registered

6 days ago