1
0 Comments

Quick Intro to Single-Page Applications

This is front-end topic #1, part of my series "Keep Up With Tech," learn more about it here.

Single-Page Applications (SPAs) are web apps that load all the necessary HTML, CSS, and JavaScript in the initial page load, and then dynamically update their DOM and retrieve extra data based on user interactions. SPAs give the users the illusion that they are accessing different pages or paths.

SPAs differ from the traditional approach of requesting new web documents from the backend servers based on user actions, sometimes called Server-Side Rendering (SSR), which reloads all assets at every user request - although some assets would be cached by the browser.

The intended benefit of SPAs over SSR is that only the needed assets, data, and images, are loaded as they are needed, and the page gets updated accordingly.

This saves bandwidth and loading time, and also because there is no page reload, the user interface and interactivity of SPA is a smoother experience compared to SSR, almost similar to a native app.

Check out the two diagrams below for a visual guide I made showing SPA vs. SSR.

posted to Icon for group Developers
Developers
on February 22, 2021
Trending on Indie Hackers
AI runs 70% of my distribution. The exact stack. User Avatar 147 comments I'm a solo founder. It took me 9 months and at least 3 stack rewrites to ship my SaaS. User Avatar 129 comments Show IH: I'm building a lead gen + CRM tool for web designers targeting local businesses without websites — starting with Spain User Avatar 79 comments I built a URL indexing SaaS in 40 days — here's the honest story User Avatar 58 comments We could see our AI bill, but not explain it — so I built AiKey User Avatar 25 comments AI coding should not turn software development into a black box User Avatar 11 comments