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

No credit card required

Describe your business. Get a website ready to publish.

Keep exploring

Related Resources

From the Blog

Guides

How Much Does a Squarespace Website Cost? Full 2026 Breakdown

A Squarespace website costs roughly $12 to $25 a month billed annually in September 2026, plus domain renewals, email, add-ons and payment fees. The full year-one and year-two cost, and cheaper alternatives.

Read
Comparison

Squarespace AI Website Builder Review: Is Blueprint AI Worth It?

Squarespace's AI builder (Blueprint AI) is on every plan and makes a polished starting site in minutes, but you still finish it by hand. Plans, AI credits, fees and alternatives, checked September 2026.

Read
Tutorial

Med Spa Website Design: Pages, Costs and a Template

Med spa website design that books consultations and treatments: the pages a medical spa needs, how to present providers, pricing and results responsibly, typical costs, a launch checklist and a template you can copy.

Read

Ready to simplify everything?

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

No credit card required · Talk to sales

Product

Who It's For

Features

Resources

Company

View Sitemap