Reputation: 706
I am building a web application in which i have to make a lot of $http
requests to server. i am using AngularJS
in front-end and ExpressJS
in back-end. i am making $http
requests something like this :
but the problem is , my app is very slow. There is a glitch in each section between opening the page and retrieving the data.
Is the way i am making $http
requests is architecturally correct or i am doing something wrong.
How to decrease Time To First Byte (TTFB)
?
Upvotes: 3
Views: 2162
Reputation: 149
You should find out if the server is slow while handling the request by printing some log on server side.
I guess the problem is not on AngularJS, but the server side.
Upvotes: 5