Single Page Application

What is single page Application?

Giving mobile application feeling to web users by updating needed html in the browsers. We can build SPA using javaScript framework like Vuejs, Angular, React etc..

How does it works?

Browser send request to server for SPA, Server sends all javaScript bundles to browser so browser only request for JSON format data from the server if any need. Javascript in browser has an ability to create and update the HTML.

is it slow?

The initial loading of SPA is quite slow because of bundle should download before it loads to users.

Can I reduce Initial loading time of SPA?

Yes, we should go for Hydration.

Build requested page in server and send to browser mean while download the javascript bundle to browser.

Example:- Vuejs has NUXT to solve this problem.