Single Page Application
Because it works inside a browser, an SPA doesn’t need the page to reload when in use. Facebook, Gmail, Github (which is more of a “hybrid” than an SPA), and Google Maps are a few examples of popular Single-Page Applications.
Facebook is the best example of how an SPA works. The majority of the interactions you see on the page happen without the site reloading. If you open the conversations menu or click on a photo, your browser gets sent to a new URL, but the page doesn’t refresh. Once you close the picture, you return to the original URL without the website getting reloaded.
- Single Page Application is good for making Responsive Websites, Support mobile, Tablet & Desktop.
- No extra queries to the server to download pages.
- User friendly.
- Performance improvement, Single Page Application can improve performance in many ways, Single time file load each of HTML, CSS, JS.
- Security: Compare to traditional page Single Page Application is less secure due to Cross-site scripting (XSS).