Skip to content

SPA

Single Page Application

Easy — everyone uses thisFrontend

ELI5 — The Vibe Check

A SPA is a website that loads ONE HTML page and then never does a full page reload again. Navigation happens entirely in JavaScript — it swaps out content on the fly. Think Gmail or Notion. Super smooth but harder for SEO if you're not careful.

Real Talk

An SPA loads a single HTML document and dynamically updates content via JavaScript as the user navigates. A client-side router intercepts navigation events and renders the correct component without full page reloads. SPAs provide app-like UX but require client-side rendering considerations for SEO.

Show Me The Code

// Vue Router turns your app into a SPA
import { createRouter, createWebHistory } from 'vue-router';

const router = createRouter({
  history: createWebHistory(),
  routes: [
    { path: '/', component: Home },
    { path: '/about', component: About },
  ]
});

When You'll Hear This

"Our dashboard is a SPA — it never does full reloads." / "SPAs have poor SEO without SSR unless you add prerendering."

Made with passive-aggressive love by manoga.digital. Powered by Claude.