In the process of developing a web application, I am faced with the task of sending numerous $http
requests to the server. My front-end is built using AngularJS
while the back-end utilizes ExpressJS
. The $http
requests are currently being made as shown in the following example:
https://i.sstatic.net/CLuNU.png
However, a significant issue has arisen - the application is running very slowly. There seems to be a noticeable delay in each section from when the page is opened to when the data is retrieved.
https://i.sstatic.net/d0jSW.png
I am unsure if the way I am making these $http
requests is architecturally sound or if there is an error in my implementation.
How can I improve and decrease the Time To First Byte (TTFB)
?