What is a web interface and what lies beneath what you see
Published on 2026-09-12 by frfrand
From Enter to the page: DNS, TCP, TLS, HTTP, HTML, CSS and JavaScript, what each one does and why that chain explains almost all performance issues.

Short answer: a web interface is the last link in a chain. The browser resolves the name via DNS, opens a connection (TCP and TLS if it's HTTPS), requests the page via HTTP, and builds what you see with HTML (structure), CSS (appearance), and JavaScript (behavior). Almost every "page takes too long" problem lies in one of those steps.
"Web interface" sounds like the pretty part: buttons, colors, design. That's just the last link in the chain, and understanding the whole chain is what lets you fix things instead of guessing.
What happens when you press Enter
Finding the address. The name you typed means nothing to the network. The browser asks DNS which address it corresponds to. If that data isn't in cache, it takes several hops to obtain it.
Opening the connection. With the address in hand, a TCP connection is opened: a back-and-forth exchange to agree that both sides are ready. If the site uses HTTPS, on top of that goes the TLS handshake, where the server presents its certificate. (With HTTP/3, TCP and TLS are replaced by QUIC, which runs over UDP, but the step is the same: agreeing on a secure connection.)
Requesting and receiving. Only then does the browser send the request. The server responds with HTML: a text document that describes the page structure.
Build the image. The browser reads that HTML and builds a tree of elements. While reading it, it finds references to stylesheets, images, and scripts, and requests each one. CSS defines how it looks, JavaScript defines how it behaves.
The three languages, and why there are three
HTML says what each thing is. This is a title, this a paragraph, this a button. It is structure and meaning, not appearance.
CSS says how it looks. Colors, sizes, positions, what happens when the screen is narrow.
JavaScript says what it does. Responds to clicks, requests data from the server, changes the page without reloading it.
The separation is not a historical whim: it is what allows a screen reader to understand the page without seeing the colors, a search engine to index it, and a redesign without touching the content.
Why this matters for performance
Almost all "the page is slow" problems are in one of those steps, and knowing which one completely changes the solution:
- Takes a while to start showing something → probably the server generating the HTML, or DNS if it is the first visit.
- Shows text without styles for an instant → CSS arrived late.
- It is visible but does not respond to clicks → JavaScript is still downloading or executing.
- It jumps and readjusts while loading → there are images without declared size, or fonts that arrived later.
The Network tab of the browser tools shows exactly where the time went. It is the most useful diagnostic tool and the one that is opened the least.
HTTP is a text conversation
In HTTP/1.1, a request is literally text (HTTP/2 and HTTP/3 encode it in binary, but with the same methods, headers, and status codes):
GET /precios HTTP/1.1 Host: www.example.com
And the response is too, with a status code up front. It's worth knowing the groups:
2xx it went well 3xx it's somewhere else 4xx the problem is with whoever requested it 5xx the problem is with the server
That last group is the one that should concern you: a 404 means someone asked for something that doesn't exist, and that can be normal. A 500 means your code failed.
And the detail that changed everything
HTTP doesn't remember anything. Each request is independent and the server doesn't know if you've spoken to it before.
That's why cookies exist: a piece of data that the server asks you to save and that your browser resends on every subsequent request. The whole idea of "being logged in" is based on that.
Understanding that the protocol is stateless explains a lot of strange web development decisions, starting with why handling sessions is more complicated than it seems.
Example: what happens when you open an application panel
A web interface is not just HTML and buttons. When you click «save», the browser normally sends an HTTP request to an API, the backend validates permissions and updates the database. A CORS error can prevent the request from the browser; an HTTP 403 response usually indicates lack of permissions; and a 500 signals a server error.
In ArduMaker you can publish the frontend and the API of a project, configure the domain and manage the VPS processes. Understanding the separation helps to detect if the failure is in the browser, the network, the API or the database, without attributing all errors to «hosting».
Next reading: What is an API · HTTP Errors.
Frequently Asked Questions
What is the difference between HTML, CSS, and JavaScript? HTML defines what each thing is (structure and meaning), CSS defines how it looks, and JavaScript defines what it does. Separating them allows screen readers and search engines to understand the page and enables redesigning without touching the content.
How do I know at which step the loading time is spent? With the Network tab of the browser's developer tools: it shows how long the DNS, the connection, the server response, and each file took.
Why do cookies exist? Because HTTP does not remember anything between one request and another. The cookie is a piece of data that the server asks the browser to save and that the browser resends with every request; "being logged in" relies on that.