Menu

What Actually Happens When You Open a Website?
📰

What Actually Happens When You Open a Website?

DEV Community: beginners·WattaDumb Explains·11 days ago
#gkd9q4sc
#devtobeginners#devto#dev#browser#request
Long article (269 words) — no AI summary yet.
Reading 0:00
15s threshold

You open a café’s website. The menu appears, but the cinnamon roll photo is still loading. A moment later, it pops in.

You clicked once. Why did the page arrive in pieces?

First, the browser finds the server

When you enter a web address, your browser needs to know where to send the request. DNS helps look up an IP address for the domain, unless your browser or system already has a usable answer saved.

For an HTTPS site, the browser uses a secure connection. That lets it verify the server’s identity and encrypt the data they exchange.

Then it asks for the page

The browser sends an HTTP request for the café’s homepage. The server responds with HTML, which describes the page’s structure and can include the menu text. It can also point to other files, like stylesheets, scripts, and that cinnamon roll photo.

As the browser reads the HTML, it discovers those files and can request several of them in parallel. The image is a separate download in this example.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.