Member-only story
Source: What is a single page application
For more questions and answers visit our website at Frontend Interview Questions
A single-page application is an app that doesn’t need to reload the page during its use and works within a browser.
One of the best advantages of a correctly-configured SPA is the user experience (UX), where the user enjoys a natural environment of the app without having to wait for the page reloads and other things. You remain on the same page, which is powered by JavaScript programming language.
Before we go further, there are three abbreviations you’ll see in this article:
SPA — single-page application (like we’ve mentioned above)
MPA — multi-page application (a traditional app that loads new pages when you click a link)
PWA — progressive web application (a website that is built using JavaScript or its frameworks and can act like an app, i.e., you can, for example, add it to your mobile phone homepage as an app)
Advantages
The main advantage of single-page applications is its speed. Most resources SPA needs (HTML + CSS + Scripts) are loaded at the launch of the app and don’t need to be reloaded during the usage. The only thing that changes is the data that is transmitted to and from the server. As a result, the application is very responsive to the user’s queries and doesn’t have to wait for client-server communication all the time.