What is a Single Page Application? | Glossary

Glossary

What is a Single Page Application?

A single page application (SPA) loads one HTML page and then uses JavaScript to swap content as you click, instead of fetching a new page from the server each time.

A single page application (SPA) is a website or web app that loads one HTML shell and a bundle of JavaScript, then redraws the screen itself whenever you click a link or button. The browser never does a full page reload, so moving around feels more like using a desktop app.

How an SPA changes "pages" without reloading

On the first visit, the server sends a nearly empty HTML file plus scripts built with a framework such as React, Vue, Angular or Svelte. The JavaScript renders the interface in the browser. A client-side router watches the address bar: when you click "Pricing", it updates the URL with the browser's History API, swaps in the pricing component and fetches any data it needs from an API as JSON. The header, menu and app state stay put; only the changed part redraws.

Familiar SPAs

Gmail, Google Maps, Trello and Figma's web app all behave this way. A small-business scenario: an equipment hire company gives trade customers a portal where they browse kit, check availability by date and manage bookings. Built as an SPA, the date picker, filters and basket respond instantly, because each click only requests a small piece of data rather than a whole new page. Tools like Vite are commonly used to build such bundles. We.Inc-generated sites use React, Vite, TypeScript and Tailwind CSS.

When an SPA is the right choice

SPAs shine for logged-in tools: dashboards, booking portals, editors, anything people use for minutes at a time. For public marketing pages that must rank in search and load fast on a first visit, a pure client-rendered SPA has drawbacks. Google can render JavaScript, but rendering may be deferred, and other crawlers and link-preview bots often read only the initial HTML. Many teams therefore pre-render or server-render public pages and keep SPA behaviour for the app part.

Common SPA mistakes

  • Every route returning a 200 shell. Missing pages should still produce a real 404, or search engines report soft 404s.
  • One title and description for all routes. Each view needs its own title and meta tags.
  • Huge first bundle. Split code by route so visitors do not download the whole app to see the homepage.
  • Broken back button or scroll position when routing is hand-rolled.
  • Losing focus for screen-reader users after a view change, because no page load announces it.

Related terms

Ready to put this into practice?

We.Inc lets you describe a site in chat and watch AI build it live, then refine it visually or in code.

Start Building

7-day free trial, $0 today

Describe your business. Get a website ready to publish.

Keep exploring

Related Resources

How-to Guides

How to Cancel Squarespace (and Keep Your Domain and Content)

The exact steps to cancel a Squarespace website subscription, what the refund policy covers, how to transfer your domain away, what you can export first, and how to rebuild the site somewhere else. Based on Squarespace's own help centre, checked September 2026.

Read guide

How Spas Get More Bookings from Google and ChatGPT

How day spas and wellness spas win bookings from search: treatment menus as pages, packages and gift vouchers, facilities and etiquette, booking platforms, spa directories, honest claims and DaySpa schema.

Read guide

How Med Spas Get More Clients from Google and ChatGPT

How medical spas win search and AI answers: treatment pages with injector credentials, medical director details, honest device wording (cleared vs approved), pricing, booking platforms, RealSelf and review rules.

Read guide

Ready to simplify everything?

Join 15,000+ businesses that replaced their entire marketing stack with one platform.

7-day free trial · Talk to sales

Product

Who It's For

Features

Resources

Company

View Sitemap