What does it mean that something "compiles on the client"
Published on 2026-09-12 by frfrand
Rendering HTML on the server or in the browser: what changes in speed, SEO, previews, and cost, and why almost everything combines both today.

Short answer: that something "compiles on the client" means that the final HTML is assembled by JavaScript in the browser, not by the server. The first load is slower and crawlers that do not execute JavaScript see an empty page; in return, subsequent navigation is almost instant. Nowadays it is common to mix both: the server builds the first screen and the browser "hydrates" the rest.
When someone says that an application "compiles on the client" or "renders on the client side", they are describing who builds the final HTML.
It is an architectural decision with very concrete consequences, and it is worth understanding before choosing a tool.
The two ways
On the server. The request arrives, the server queries the database, builds the complete HTML with the data inside, and sends it. The browser receives a ready document and draws it. This is how the entire web worked for twenty years, and this is how WordPress, Django or Rails work today without anything on top.
In the browser. The server sends an almost empty HTML and a JavaScript file. The browser executes that JavaScript, which requests data from an API and builds the page at that moment. This is what React, Vue or Angular do in their simplest form.
The word "compile" is a bit misleading: it does not compile in the classic sense. What happens is that the code is transformed beforehand (from JSX or TypeScript to JavaScript that the browser understands) and that result is executed on the client to produce the HTML.
What changes for the user
With server-side rendering: the first screen appears quickly, because what arrives is already the page. But each subsequent navigation requests another full page.
With client-side rendering: the initial load is slower, because you have to download and execute the JavaScript before seeing anything. In exchange, once loaded, moving around the application is almost instantaneous: only data is requested, not the entire page.
The trade-off, summarized: you pay upfront so that later it's fast, or you don't pay upfront and every step costs a little.
The two costs that are underestimated
Search engines and link previews. A crawler that doesn't execute JavaScript sees empty HTML. Google executes JavaScript today, but not everyone does, and it takes longer to index. And when someone shares your link in a chat, the one generating the preview almost never executes scripts: if the title and description are set by JavaScript, the preview comes out empty.
Phones that aren't yours. Executing JavaScript costs processor. On a mid-range phone from four years ago, a large bundle can mean several seconds of blank screen. It's a problem that is almost never seen from a development laptop with a good connection.
Why almost everything is a mix today
The industry realized that the trade-off didn't need to be accepted entirely. Modern frameworks do both things:
The server generates the HTML of the first screen, so it appears immediately and is readable by anyone. That HTML arrives with the JavaScript on the side, which when executed "takes control" of the already drawn page and handles the following interactions.
That is called hydration, and it is the model of Next.js, Nuxt, SvelteKit and the others.
And a third way that is rarely used
If the content does not change by user, there is a better option than the two: generate it only once when publishing and serve static files.
A blog, documentation or an institutional site do not need anyone to build anything on every visit. An HTML file on disk, served by nginx, is the fastest and cheapest thing that exists, and it does not crash.
In ArduMaker this is a type of deploy process from GitHub (static): on every push the site is compiled on the VPS and nginx serves the resulting folder as static files, with its domain and HTTPS. For content sites it is hard to beat.
Compiling is not the same as running in the browser
A Vite project usually transforms the source code into static files during the build. In production, those files are served to the browser; if it needs to consult private data, it uses a separate API that keeps credentials on the server.
In ArduMaker you can host the build result and an API on the same VPS, with separate subdomains (or, by manually editing the nginx server block, with routes on the same domain). Verify that the variables exposed to the client do not include secrets and that the API links point to the correct public domain, not to localhost.
Related: What is localhost · What is a web interface.
Frequently asked questions
What is hydration? It is when the server sends the first page already built in HTML and, when loading JavaScript, it "takes control" of that page to handle subsequent interactions. It is the Next.js, Nuxt, or SvelteKit model.
Does client-side rendering hurt SEO? Google executes JavaScript, although it indexes more slowly; other crawlers and almost all preview generators do not. If the title and description are set by the script, those see an empty page.
When is a static site convenient? When content does not change per user: blogs, documentation, institutional sites. It is generated once upon publishing and nginx serves files, which is the fastest and cheapest.