gauravmehla
gauravmehla

Reputation: 706

Retrieving data from server is slow in AngularJS application

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 :

enter image description here

but the problem is , my app is very slow. There is a glitch in each section between opening the page and retrieving the data.

enter image description here

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)?

enter image description here

Upvotes: 3

Views: 2162

Answers (1)

yibuyisheng
yibuyisheng

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

Related Questions