All articles

What is a single page web application? A plain guide

A single page web application loads once and updates without reloading. See how SPAs work, examples, SPA vs multi-page sites, SEO risks and when to use one.

A hand slides a turquoise panel into an upright purple wooden frame, with a yellow panel resting beside it on a wooden table

A single page web application is a website that loads one HTML page in the browser. It then uses JavaScript to update the content as you click around, rather than loading a new page each time. This makes it feel quicker and closer to a desktop or mobile app.

One type of website loads a single HTML document and uses JavaScript to update its content as people interact, so it feels like a native app. This is called a single page web application (SPA). Below we explain how one works, where it helps, where it causes problems and when a UK business should choose one.

At a glance

  • An SPA loads a single web document and uses JavaScript to update the content when different information needs to be shown, rather than loading new pages, as MDN’s glossary describes it.
  • React is a library for building user interfaces. It is commonly used for SPAs but does not require you to build one, according to the React glossary.
  • Well-known SPA-style products include Gmail and Netflix.
  • The main trade-offs are search engine optimisation, initial load time, browser navigation and analytics set-up, as covered in this guide from TatvaSoft.
  • PS Up North has designed and built bespoke software since 2009, serving UK businesses from Leeds and Yorkshire.

What is a single page web application?

One HTML document loads once, and JavaScript then swaps the content without a full page reload, so the site behaves like an app. That’s a single page web application. The usual short form is SPA.

In plain terms, the browser downloads the HTML, CSS (the styling) and JavaScript (the code that makes things happen) at the start. After that, it only asks the server for the data it needs. That might be a list of orders or a customer’s details. MDN’s definition follows the same idea: one document, with content updated as different information needs to be shown.

The words “web application” and “website” overlap a good deal. The term SPA describes how a site loads and updates, not what it does. A booking tool, a customer portal and a dashboard can all be SPAs, and so can a site that looks like a plain brochure, although that is rarely a good idea.

How does a single page application work?

This type of application works by downloading an app shell once, then using JavaScript to request small pieces of data from the server and redraw only the part of the screen that changed. The app shell is the basic frame of the page: menus, layout and the code that runs it.

A hand slides a small magenta tile into a slot in the side of a blue wooden box, with a square opening in its front panel.
A fixed outer shell with one small piece swapped in is a simple way to picture how a single page application updates.

Take an online banking tool built as an SPA:

  1. You open the bank’s site and the browser loads the HTML, CSS and JavaScript.
  2. The shell appears, with the menu and the log-in form.
  3. You log in. Your details go to the server and a confirmation comes back, not a whole new page.
  4. You click Transactions. The page asks the server for your transactions and draws them in the main area. The menu stays where it is.
  5. You click Account Settings. Your settings replace the transactions, again without reloading.

Why the address bar still changes

Client-side routing is the technique that updates the web address as you move around, even though no new page is loaded. It lets people bookmark a screen, share a link and use the back button. When it is built badly, those things break.

APIs and JSON

An API (application programming interface) is the doorway through which the app asks the server for information. The reply usually comes as JSON, a lightweight text format for structured data such as names, dates and amounts. The SPA turns that data into what you see on screen.

Client-side and server-side rendering

Rendering means turning code and data into the page you see. With client-side rendering, the browser does the work. With server-side rendering, the server prepares the HTML first and sends it ready to read, which helps search engines and first-load speed. Many modern builds mix the two.

What is the difference between an SPA and a multi-page website?

A multi-page website asks the server for a whole new page on every click, while an SPA loads once and updates in place. SPAs feel smoother but are more complex to build and optimise.

Left, hands lift a whole orange sheet from a stack; right, one green tile is swapped on a navy board while the others stay
A whole sheet replaced beside a single tile swapped in place shows how a multi-page site differs from a single page application.
Feature Single page application Multi-page website
Page loading One initial load, then content swaps in place A full page load on each click
Speed after first load Usually quick, as only data is fetched Depends on each page, with a short pause between pages
SEO Needs extra care so search engines can read the content Straightforward, as each page is plain HTML
Build complexity Higher, with routing, state and API work Lower for content-led sites
Offline use Possible with extra work Limited unless built for it
Analytics Page views must be set up by hand Works out of the box in most cases
Best suited to Logged-in tools, dashboards, portals Marketing sites, blogs, shops with many entry pages

Neither approach is better in every case. The right choice depends on what the site has to do and who needs to find it.

What are examples of single page applications and web apps?

Gmail, Google Docs, Figma, Trello, Notion and Slack are familiar browser-based apps, and many of them use the single-page pattern. We can’t confirm how each one is built, so treat them as examples of the kind of experience an SPA aims for.

That also answers the common question “Which apps are web apps?”: a web app is any application you use through a browser rather than installing it. Every SPA is a web app, but not every web app is an SPA. A web app can load a new page on each click and still count as a web app.

Everyday UK business examples include:

  • Customer portals where people view orders, invoices or documents
  • Booking dashboards for appointments, classes or equipment
  • Internal admin tools for staff to manage records
  • Quoting systems that update prices as options change

Why is React called a single page application framework?

React is not an SPA itself. It is a JavaScript library for building user interfaces that is widely used to build SPAs.

The React glossary says React is commonly used for single page applications but does not require you to build one. React can also power server-rendered sites and multi-page sites. Its job is to manage what appears on screen, and it needs other pieces, such as a routing library, to behave like a full SPA.

Other common tools include Vue and Angular, which also help build SPAs. Which one suits a project depends on the team, the size of the app and how long it needs to be maintained.

What are the advantages of a single page application?

SPAs feel fast and fluid after the first load, give a more app-like experience and can reduce repeat data requests to the server.

  • Speed and smoothness: after the first load, only data moves between browser and server, so screens change quickly.
  • Caching and partial offline behaviour: the app shell can be stored in the browser, so some parts keep working with a poor connection if the app is built for it.
  • One back end for several front ends: the same API can serve the website and a mobile app, which can save duplicated work.
  • A good fit for logged-in tools: dashboards and portals benefit from instant updates and no full reloads.

From a business view, the gain is fewer frustrated clicks. Staff who use a tool all day and customers who check a portal often will notice a smoother screen far more than a visitor reading one blog post.

What are the disadvantages and SEO risks of an SPA?

The main drawbacks are a heavier first load, harder SEO if content only renders in the browser, weaker back-button behaviour if badly built, and more complex analytics and security.

SEO and rendering

Google can process JavaScript, but it is slower and less reliable than reading plain HTML. If your content only appears after the browser runs the code, it may be indexed late or missed. Common fixes are:

  • Server-side rendering, so the server sends ready-made HTML
  • Static generation, where pages are built in advance
  • Pre-rendering key pages for search engines
  • Giving each screen its own proper URL, title and meta description

Accessibility

SPAs need deliberate work so that everyone can use them. When content changes without a page load, screen reader users may not be told. Good builds manage keyboard focus, announce changes and keep full keyboard navigation.

Security and storage

Because more code runs in the browser, be careful about what you store there. Avoid keeping sensitive data in browser storage, and make sure the server checks every request rather than trusting the app.

Performance on slow connections

The first load downloads more code, which can feel slow on a weak mobile signal. Splitting the code into smaller parts and loading only what is needed helps. Analytics needs care too. A standard tracking snippet will only see the first load, so it needs setting up to record screen changes.

When should a UK business choose a single page application?

Choose an SPA for interactive, logged-in tools such as portals, dashboards and booking systems. Choose a conventional or server-rendered site for content that needs to rank on Google, like marketing pages and blogs.

Tall green wooden block with an open front joined to a smaller yellow block with a half-open drawer and brass-handled door.
Two joined pieces, one open and simple, one with compartments, picture the split between content pages and interactive tools.

A quick checklist:

  • Needs search traffic? Favour server-rendered or multi-page pages.
  • Needs heavy interaction? An SPA suits it.
  • Needs a login? Search visibility matters less, so an SPA is a strong option.
  • Needs a mobile-like feel? Consider building an SPA, possibly with offline features, to deliver it.

The hybrid approach

Many businesses do best with both. The marketing site, with your services, blog and contact pages, is rendered on the server so it ranks well and loads fast. The section behind the login, such as the customer portal, is built as an SPA. Visitors get findable pages and customers get a smooth tool.

Maintenance and ongoing cost

Building one is not a build-once purchase. Libraries and browsers change, so plan for regular updates, security patches, testing and accessibility checks. Cost depends on the number of screens, the integrations with your existing systems, the level of security and how much offline behaviour you need. A hybrid set-up adds a little planning up front but often saves rework later.

PS Up North has designed and built bespoke software since 2009, serving UK businesses from Leeds and Yorkshire and online. That gives us a practical view on whether an SPA, a conventional site or a mix of the two fits what you are trying to do. Customers choose us for service and expertise, and they tell us they won’t regret appointing PS. Weighing up a portal, dashboard or booking tool? Get in touch with our team and we will talk it through in plain English.

Frequently asked questions

Is a single page application good for SEO?

It can rank well, but only with extra work. Server-side rendering, pre-rendering or static generation, plus proper URLs and metadata, help search engines read the content. For pages that must attract search traffic, a server-rendered site is usually simpler.

Is Gmail a single page application?

Gmail is widely cited as an example of the single-page style, where the screen updates without full reloads. We can’t confirm how Google builds it, so it is best seen as an example of the app-like experience an SPA aims for.

Can a single page application work offline?

Partly, if it is built for it. The shell can be cached in the browser, and some data can be stored locally. Offline use is not automatic. It needs deliberate design and testing.

Is WordPress a single page application?

WordPress is not a single page application by default. It normally builds and sends a new page on each click, like a multi-page website. It can be used as a content source for an SPA front end, but that is a custom set-up.

How much does it cost to build a single page application?

The cost of a single page application depends on the number of screens, the integrations, security needs, accessibility work and any offline features. We don’t publish fixed prices, so contact us with your requirements and we will talk through what is involved.

What is the difference between an SPA and a progressive web app?

The term SPA describes how a site loads and updates, while a progressive web app (PWA) is a web app that adds features such as installing to a home screen and working offline. A PWA can be an SPA, but it does not have to be. See web.dev’s architecture guide for how the two relate.

Do single page applications work with the browser back button?

A well-built single page application works with the back button because client-side routing updates the address as you move between screens. A poorly built one can break it, sending people out of the app or back to the start, so it is worth testing early.

Outgrown off‑the‑shelf?

Tell us how your business works. We'll tell you honestly what we'd build.

Start a project