Single Page Applications


Single Page Applications (SPAs) are web applications or web sites that have one entry point HTML page. All the application content is dynamically added to and removed from that one page. The goal is to provide a user experience similar to that of a desktop application. Either all of the HTML, CSS and JavaScript is retrieved when the page is loaded, even if some of that code does not run right away, or the appropriate resources are dynamically loaded and added to the page as necessary, usually in response to user actions.

The page does not reload at any point in the process, nor does control transfer to another page, however SPAs often involve dynamic communication with the web server behind the scenes. Navigation between pages performed without refreshing the whole page.

Libraries are available that support the building of an SPA, reducing the amount of Javascript the developer has to write.

AngularJS allows you to pre-load and cache all your pages, so you don’t need extra requests to download them. If you are making a SPA using Angular, you will need to use Angular’s routing capabilities.

Leave a comment

Your email address will not be published. Required fields are marked *