What is single-page application (SPA)?
A single-page application (SPA) is a website or web app that loads one HTML page and then updates content with JavaScript as people navigate, instead of loading a new page each time.
Curious how your site handles SPA?
Send me the address. I’ll look under the hood and tell you plainly what I find, free.
In plain English
In an SPA, clicking a link doesn’t trigger a full page load. JavaScript swaps the content and updates the address bar. That makes navigation feel quick and smooth, like an app.
Gmail and many dashboards are SPAs. The pattern can also be used for marketing sites, but then each page needs real HTML for crawlers, usually through prerendering.
Why it matters for a small business
An SPA without prerendering can hide content from search engines and AI tools. SPAs also need care with analytics, so page views are tracked, and with accessibility, so screen readers notice when the page changes.
An example
A Calgary fitness studio’s site was built as a pure SPA. Google indexed only the homepage properly, and analytics recorded every visit as a single page view. Prerendering each route and firing page-view events on navigation fixes both while keeping the smooth transitions.
Common mistakes
Where I see SPA go wrong most often.
Launching a public SPA with no prerendering or server rendering.
Forgetting to update the page title and focus when navigating between views.
Not tracking page views properly, so analytics undercounts how people move through the site.
SPA, answered
A pure client-rendered SPA can be. With prerendering or server rendering, an SPA can be just as visible as a traditional site.
Often the title is set by JavaScript after load. Prerendering puts the correct title in the initial HTML.
Keep reading
- nick@tavro.ca
- 587-439-9994
- Calgary, Alberta