You type an address, hit Enter, and a page shows up in under a second.
It feels like one action. It is actually a relay race with about six runners, and any one of them can drop the baton.
Before anything leaves your machine, the browser parses what you typed. A full address like https://www.example.com/page has three parts: the scheme (https), the host (www.example.something), and the path (/page). If you just type example.com, the browser assumes https and fills in the rest. That parsing step matters because it tells the browser whether to look for a web page, a file, or a mail address.
Computers do not route traffic by name. They route by IP address, something like 93.184.216.34. So the browser asks a DNS resolver to translate the name. Your operating system checks its own cache first, then your router, then your internet provider's resolver. If none of them know, the resolver queries the root servers, then the servers, then the domain's own name servers. That whole chain usually finishes in 20 to 120 milliseconds. Once the resolver returns the IP, your machine caches it for a set time, often 300 seconds, so the next visit skips the lookup.
Now your browser needs a connection to that IP on port 443 for HTTPS. It sends a SYN packet, the server replies with SYN-ACK, and your machine answers with ACK. Three messages, one round trip, connection open. If the server were far away, say a data center in Singapore while you sit in Ohio, that round trip alone could cost 200 milliseconds. This is why content delivery networks exist: they keep a copy of the site on a server closer to you.
With HTTPS, the connection is not ready yet. Your browser and the server run a TLS handshake. The server presents a certificate signed by a certificate authority, and your browser checks that the certificate matches the domain name and has not expired. They then agree on encryption keys. From this point, everything is scrambled in transit. If the certificate is invalid, you get the full-page warning instead of the site. Chrome, Firefox, and Safari all ship with their own list of trusted authorities, which is why an expired certificate breaks the site for everyone at once.
Your browser now sends an HTTP request: a method like GET, the path, and headers describing what it accepts. The server processes it and returns a status code. You know 200 for success and 404 for not found. A 301 or 302 means the page moved, and the browser follows the new address automatically. A 500 means the server itself broke. The response body is usually HTML, plus headers telling the browser how long to cache it.
The HTML arrives, and the browser starts parsing it immediately. It builds a DOM tree, then a CSS object model, then combines them into a render tree. JavaScript can block this: a script tag without async or defer pauses parsing until the file downloads and runs. That is a common reason a page loads in chunks rather than all at once. Images, fonts, and stylesheets are fetched in parallel, and each one triggers a repaint.
The second visit is almost always faster, because most of those steps get skipped. The DNS answer sits in your cache. The TLS session can be resumed. The HTML, CSS, and images may come straight from disk. On a repeat visit to a well-cached site, the browser might send only one small conditional request to check whether anything has changed since last time. A 304 response means no, and it serves what it already has.
So next time a page hangs, you have a mental checklist: bad DNS, slow handshake, expired certificate, or a blocking script. Knowing the order of operations turns a vague "the internet is slow" into something you can actually narrow down.