Vezi pagina în română

IT Glossary

What is a Single-Page Application?

A web application that loads once in the browser and then changes screens without reloading the page.

7
sections
6
questions answered

A single-page application (SPA) is a web application that loads the HTML document and the JavaScript code once, then changes what is on screen without reloading the page: on each click it asks the server only for data, through an API, and redraws just the part that changed. The name is misleading, because 'single page' does not mean a one-page website. An SPA can have dozens of screens, each with its own address, while a 'one page' site is just a long presentation page with scrolling. The familiar example is Gmail: you move between messages, search and archive with no white flash, whereas a classic website reloads the whole page on every click.

It is built with React, Vue or Angular and suits business applications behind a login: dashboards, web ERP and CRM, customer portals, internal tools. Public pages that must be found are different: Google runs JavaScript, but with a delay, while the ChatGPT and Claude crawlers, per a December 2024 Vercel study, download JavaScript files without executing them. That is why public pages need server-side rendering or static generation, while the application itself stays an SPA.

Why it matters for your business

An app experience, not a site experience

Instant navigation, preserved state, fluid interactions — users work without the frustration of reloads at every step.

A lighter server and a reusable API

The server delivers data rather than whole pages — the same API feeds the web app, the mobile app and future integrations.

The natural home of business tools

Dashboards, portals, web ERPs — interaction-heavy workloads get the architecture modern frameworks were designed around.

How a single-page application works

It happens in four steps. The first load brings a minimal HTML file and the JavaScript bundle (plus CSS). Then, on each link click, JavaScript intercepts the navigation and changes the address in the browser bar through the History API (pushState), without requesting a new page; that is why the back button and shared links keep working. Data comes from the server through an API, usually as JSON. Finally, the framework rewrites in the DOM only the affected components.

This mode is called client-side rendering (CSR). The alternatives are server-side rendering (SSR) and static site generation (SSG), each with its own glossary page. Hybrid frameworks such as Next.js and Nuxt send the first page already rendered and only then navigate like an SPA.

Examples of single-page applications

Public applications that work as SPAs include Gmail, Google Maps and Trello. In companies, SPAs appear as dashboards, web ERP and CRM, customer portals, admin panels and internal tools.

React, Vue and Angular are not SPAs in themselves, but the tools used to build them. A framework does not make an application single-page; the chosen architecture does.

Want an estimate for your project?

Message us on WhatsApp. We reply the same working day, and the first 30-minute call is free.

Book a free call

SPA vs MPA (classic website): the difference

In a multi-page application (MPA, a classic website), each click asks the server for a new HTML document. In an SPA, after one load only data travels. The consequences show in five places: the first load is heavier in an SPA, later navigation is faster, SEO is simpler in an MPA, development effort is higher in an SPA, and as a fit, an MPA suits public sites while an SPA suits interactive applications.

It is not a choice between SSR and SPA: SSR is a rendering mode, and modern applications combine it with SPA-style navigation.

SPAs, Google and AI assistants

Googlebot runs JavaScript with an evergreen Chromium, but queues pages for rendering, which can take from a few seconds to longer (Google Search Central, 'JavaScript SEO basics', updated 4 March 2026). Google asks for routes built with the History API, not #/ fragments, and real 404 codes instead of 'soft 404s'.

The ChatGPT and Claude crawlers download JavaScript files but do not execute them, according to a Vercel and MERJ study from December 2024. The public content of a pure SPA stays invisible to them. The practical conclusion: public pages with SSR or SSG, while the application behind the login stays an SPA.

There is also an analytics trap: in an SPA, a screen change is not a page load. GA4 counts it automatically when enhanced measurement's browser-history option is on (pushState, replaceState, popState); otherwise the app must send the page view event itself. Worth checking at acceptance.

When a company needs an SPA

For an application behind a login, an SPA is the standard choice. For a public site, server-side rendering or a hybrid framework. A few things to know before deciding: the SPA pays at the door what it saves later, so first load needs optimisation, especially on mobile; part of the logic that used to live on the server now lives in the client; security must stay on the server, because everything in the browser is visible and modifiable by the user, so validation in the interface is comfort, not defence; and JavaScript errors become application errors, so monitoring them, with Sentry-type tools, is part of serious operation.

Frequently asked questions

SPA or a classic website for our project?

Decide by nature: an interactive application behind a login (portal, dashboard, internal tool) is SPA territory without hesitation; a public site that must be found on Google (company site, blog, e-commerce) needs server-side rendering — ideally a hybrid framework like Next.js or Nuxt that gives both indexability and fluidity. A vendor who asks unprompted 'what needs to be indexed?' is showing competence.

Is it true SPAs have problems with Google?

Partly: Google renders JavaScript, but later and with conditions, and many other crawlers, including those of AI assistants, do not run it at all. The fix: public pages with SSR or static generation, while an app behind a login has no problem, because search engines never enter.

The first load feels slow on mobile — is that normal?

It is the architecture's entry cost, but 'slow' signals missing optimisation rather than fate: code splitting, compression, lazy loading and size budgets keep first load civilised even on 4G. At acceptance, the test is concrete — first open on a mid-range phone over a mobile connection, timed, with a Lighthouse report putting numbers on it. After that first load, the SPA takes its revenge: everything is instant.

What does SPA mean in programming?

In programming and on the web, SPA means single-page application: a web app with one loaded page whose content is changed by JavaScript. It has nothing to do with the wellness spa, whose name popularly comes from the Latin phrase 'sanitas per aquam'.

What are examples of single-page applications?

Gmail, Google Maps and Trello work as SPAs. In companies, typical examples are dashboards, customer portals, web ERPs and CRMs, admin panels and internal tools: applications where the user works a lot and interacts often.

Is React a single-page application?

No: React is a JavaScript library for interfaces. With it, as with Vue or Angular, you build SPAs, and through Next.js the same application can also render pages on the server, so React alone does not decide whether an app is an SPA.