In a traditional web application, the client requests a URI and the requested page is displayed in the browser. Subsequent to that, if the user wants to submit a form then the submitted form data is sent to the server and the response is displayed by reloading the whole page as follows:
Unlike traditional web applications, the overhead of refreshing the page is reduced by single-page applications leveraging a REST API to load the page data as follows: