alex/what-happens-when

Public

An attempt to answer the age old interview question "What happens when you type google.com into your browser and press enter?"

  • Stars43.4k+19 tuần này
  • Forks5.7k
  • Watchers669
  • Issues247
  • Ngày tạo07/11/2013
  • Cập nhật gần nhất19/08/2024
  • Ngôn ngữ—
  • Giấy phép—
README.rst45.6 KBRaw

What happens when...

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 are 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.

Read this in 简体中文 (simplified Chinese), 日本語 (Japanese), 한국어 (Korean) and Spanish. NOTE: these have not been reviewed by the alex/what-happens-when maintainers.

Table of Contents

The "g" key is pressed

The following sections explain the physical keyboard actions and the OS interrupts. When you press the key "g" the browser receives the event and the auto-complete functions kick in. Depending on your browser's algorithm and if you are in private/incognito mode or not various suggestions will be presented to you in the dropdown below the URL bar. Most of these algorithms sort and prioritize results based on search history, bookmarks, cookies, and popular searches from the internet as a whole. As you are typing "google.com" many blocks of code run and the suggestions will be refined with each keypress. It may even suggest "google.com" before you finish typing it.

Nội dung README thuộc về alex và cộng đồng đóng góp, giấy phép Không có giấy phép. Nguồn: github.com/alex/what-happens-when