What is SPA (Single Page Application)?
Turkish: SPA
An SPA updates the interface without full page reloads after the first HTML load, using JavaScript routing and API-driven data.
What is an SPA?
An SPA (Single Page Application) is a web application architecture where the browser receives the initial HTML, CSS, and JavaScript bundle, then moves between screens without full page reloads. As the user navigates, a client-side router usually updates the view and data is fetched through APIs.
This model can create a fluid, desktop-like experience. If initial bundle size, SEO, accessibility, error states, and browser history are not handled well, the same architecture can hurt the user experience.
How Does It Work?
- Client-side routing: The URL changes without reloading the whole page.
- API data flow: The interface fetches data as JSON or a similar format.
- State management: User session, form state, and screen data may live on the client.
- Bundle splitting: JavaScript can be split and lazy-loaded for performance.
- Fallback handling: Deep links and refresh requests must be served correctly.
Business Use
SPA architecture fits admin panels, SaaS interfaces, project management tools, map-heavy screens, and highly interactive products. Filtering a list, opening a modal, or updating a chart without a full reload can make repeated work feel faster.
For content-heavy marketing sites or pages where organic search is the primary success metric, server-side rendering or static generation may be a better fit. React can be used to build SPAs; when offline and installable behavior is needed, PWA capabilities are added separately.
Related Terms
htmx is a lightweight library that adds AJAX, WebSocket, and partial server-rendered updates through HTML attributes.
PWA (Progressive Web App)A PWA uses a service worker, web app manifest, and responsive design to make a website installable, resilient, and closer to an app experience.
React.jsReact is an open-source JavaScript library for building user interfaces from reusable components that update efficiently when state changes.
View Transition APIView Transition API lets browsers animate between old and new page or state views during navigation and UI updates.