How the internet worksExhibit 2
What happens when you type a URL and press Enter?
Your browser looks up the site’s address with DNS, opens a connection with TCP, locks it withTLS, asks for the page over HTTP, then builds it from about 70 separate requests. Every handshake is a trip to the server and back, and nothing travels faster than light: London to New York costs at least 55 ms per round trip. Pick a server below and watch the milliseconds add up.
Try it: where do the milliseconds go?
Then the browser reads the HTML and fetches about 70 more files (styles, scripts, images, fonts), builds the DOM, applies CSS, lays out and paints the page.
Best case: straight-line distance at the speed of light in fiber (~204,000 km/s), DNS already cached, no server or Wi-Fi delay. Real cables are longer, so real pages are slower.
Watch: what really happens when you press Enter
The full trip in 7 minutes, with the animations behind every number on this page.
Premieres today at 7 pm Yerevan time (15:00 UTC). Press play to open it on YouTube and set a reminder.
The video loads from YouTube only when you press play. Watch on YouTube
Can your browser load a page before you press Enter?
Yes, and Chrome often does. While you type, it ranks its guesses for where you’re going based on your browsing history. When it is fairly confident, it opens a connection to that site early, so the handshakes are already done. When it is very confident, it goes further and prerenders the whole page in a hidden tab. Press Enter and the finished page simply appears.
Chrome’s documentation describes this as part of its “Preload pages” setting, which is on by default. It is switched off on low-memory devices and when the system is in Energy Saver or Save-data mode. Everything below is what happens when the browser can’t take that shortcut.
Does the browser know you typed a URL and not a search?
First it has to decide. bitsandwhys.com looks like an address; best pizza near me doesn’t, so that goes to your search engine. If it is an address, the browser fills in what you left out. Since Chrome 90, typing a bare address makes Chrome try the secure https:// version first.
For some sites it goes further. Chrome ships with a built-in HSTS preload list: sites that must only ever be reached over HTTPS. For those, the browser never even tries the insecure version. Firefox, Safari and Edge use lists based on Chrome’s.
What does DNS do?
Computers don’t find each other by name; they use numbers called IP addresses. DNS, the Domain Name System, is the internet’s phone book: it turns bitsandwhys.com into the number of a real server.
The browser asks in order. First its own memory, then your operating system, then a resolver, usually run by your internet provider or a public service like Google or Cloudflare. If the resolver doesn’t know, it starts at the top: the root servers. There are only 13 root server names, lettered A to M, run by 12 organizations, but behind them sit about 2,048 machines around the world. The root doesn’t know the answer; it points to the servers for.com, which point to the site’s own authoritative server, which finally hands over the number.
That full chain is rare. Every answer comes with an expiry time (a TTL), and everyone along the way keeps a copy until then, so most lookups are answered from a cache. The demo above treats DNS as cached, just like the video.
What is a TCP handshake?
With an IP address in hand, the browser opens a connection, usually with TCP. It starts with three messages: the browser sends SYN (“can we talk?”), the server answers SYN-ACK (“yes, can you hear me?”), and the browser replies ACK (“yes”). Only then can real data flow.
That exchange there and back is a round trip, and round trips are where the time goes, because no message can travel faster than light. In optical fiber, light covers about 204,000 km every second. London to New York is about 5,570 km in a straight line, so one round trip takes at least 55 ms before any computer has done any work.
What does TLS do, and why is TLS 1.3 faster?
Anyone between you and the server, like café Wi-Fi or your provider, could read an unprotected connection. So before anything private is sent, browser and server run a second handshake, TLS, the padlock in your address bar. They agree on a secret key in the open, using maths that an eavesdropper who hears every message still can’t reverse. The server also shows a certificate signed by a trusted authority, proving it really is the site you asked for.
The older TLS 1.2 needed two round trips for this. TLS 1.3 needs one. The locks are also being upgraded against future quantum computers: on Cloudflare’s network, the share of human HTTPS traffic protected by post-quantum key exchange rose from 29% to 52% during 2025.
What is HTTP, and how is HTTP/3 different?
Now the browser can finally ask for the page. It sends a short request, GET /, and the server replies with a status code, 200 OK, followed by the page’s HTML. That is one more round trip: across the Atlantic, the first byte of the page arrives after about 165 ms at best.
HTTP/1.1 handled one request at a time per connection, so browsers opened several connections side by side. HTTP/2 sends many requests at once over a single connection, and by 2024 about 85% of requests on web pages already used HTTP/2 or newer. HTTP/3 runs on a newer transport called QUIC, which merges the connection and encryption handshakes into one round trip: two round trips to the first byte instead of three.
Round trips to the first byte, London to New York
Best case: 55 ms per round trip, DNS cached. Each extra round trip adds the full distance again.
| Protocol | Round trips | London → New York |
|---|---|---|
| HTTP/1.1 + TLS 1.2 older setup | 4 (TCP 1, TLS 2, HTTP 1) | 220 ms |
| HTTP/2 + TLS 1.3 most sites today | 3 (TCP 1, TLS 1, HTTP 1) | 165 ms |
| HTTP/3 (QUIC) newest | 2 (QUIC + TLS 1, HTTP 1) | 110 ms |
How does the browser build the page?
The HTML is mostly a list of instructions: a stylesheet here, a script there, these images, this font. Each is another request. The median mobile page in the HTTP Archive’s 2025 Web Almanac makes 72 requests and downloads about2.2 MB (77 requests and 2.4 MB on desktop).
As files arrive, the browser turns the HTML into a tree of elements called the DOM, applies the CSS to work out how each element looks, runs layout to decide where every box goes and how big it is, and finallypaints the pixels. Scripts and late-loading images can change the page at any moment, so parts of this run again. That is why a page sometimes jumps just as you’re about to tap something.
Why do big websites feel faster?
Because they cheat distance. The handshakes alone across the Atlantic cost over a tenth of a second, and no software can make light faster. So large sites keep copies of themselves in data centers close to you, which shrinks every round trip. Try it in the demo: put the server in your own city and watch the total collapse.
Frequently asked questions
What happens when you type a URL and press Enter, in short?
The browser decides whether you typed an address or a search, adds https, looks up the site’s IP address with DNS, opens a connection with a TCP handshake, encrypts it with a TLS handshake, sends an HTTP request for the page, and then builds the page from the HTML plus dozens of extra files: about 72 requests for a typical mobile page.
Can a browser load a page before you press Enter?
Yes. Chrome predicts where you are going while you type. When it is fairly confident it connects to the site early, and when it is very confident it prerenders the whole page in the background, so it appears instantly when you press Enter. This needs the “Preload pages” setting (on by default) and is switched off on low-memory devices and in Energy Saver or Save-data mode.
Why does the speed of light matter for websites?
Every handshake needs a message to travel to the server and back. Light in optical fiber covers about 204,000 km per second, so London to New York and back takes at least 55 milliseconds before any computer does any work. A connection that needs three round trips cannot beat about 165 ms across the Atlantic. Real cables are longer than the straight line, so real times are higher.
Is HTTP/3 faster than HTTP/2?
For setting up a new connection, yes. HTTP/3 runs on QUIC, which combines the connection handshake and the encryption handshake into one round trip, so the first byte of the page can arrive after two round trips instead of three. Over a long distance that saves a whole round trip, about 55 ms from London to New York.
How many requests does a web page make?
The median page in the HTTP Archive’s 2025 Web Almanac makes 72 requests on mobile and 77 on desktop, and downloads about 2.2 MB on mobile and 2.4 MB on desktop: stylesheets, scripts, images and fonts on top of the HTML.
Sources
- Chrome for Developers: Prerender pages (address-bar preconnect and prerender)
- Chromium blog: A safer default for navigation: HTTPS (Chrome 90)
- HSTS preload list
- root-servers.org (13 names, 12 operators, 2,048 instances on 21 October 2026)
- RFC 9293: TCP
- Cloudflare: TLS 1.3 and RFC 8446
- Cloudflare Radar 2025 Year in Review (post-quantum share)
- Web Almanac 2024: HTTP (HTTP/2+ share)
- RFC 9000: QUIC and RFC 9114: HTTP/3
- Web Almanac 2025: Page Weight (requests and bytes per page)
Last updated
Keep exploring

How does Google search so fast?
Search real books two ways and watch the timer.
Why do emails go to spam?
Type any message and watch each word push the spam score.
How does a JPEG make photos so small?
Drag a quality slider on a real photo and watch the blocks appear.See all the exhibitsSubscribe on YouTube (opens in a new tab)