HTTP get call taking so long : Angular 7

14 views
Skip to first unread message

Ajit

unread,
Aug 12, 2020, 9:48:58 PM8/12/20
to Angular and AngularJS discussion
Hi All,

I am fetching data around 2MB in size with HTTP Get and its taking more than 20 sec. I am not doing any transformation as well.
FYI. both service and API is in same server and  the same service if use  directly in browser it is taking 2-3 sec.
Is there anything I am missing to set/configure for the network call.



Thanks,
Ajit

Sander Elias

unread,
Aug 14, 2020, 5:05:57 AM8/14/20
to Angular and AngularJS discussion
Hi Ajit,

I have not seen this myself but I think I recall an issue from way back in ng 7. Can you update your app to the current Angular and retry?
An alternative solution is to use fetch for this one data-source.

Regards
Sander
Reply all
Reply to author
Forward
0 new messages