I am facing an issue the http get call going into pending state, basically i am hitting the server for that http get call after every 5 seconds, that call getting latitude and longitude from server and rendering map based on those lat lng. The problem is call most of the time goes into pending state and making queue of that specific call because that call have to be called after every 5 seconds, one call stuck the others all dependent to that also stuck, the reason is javascript is a single threaded language, which will wait for a call to complete and run next when previous completed.
Kindly guide me How to debug that problem.