My problem is as follows:
- On a page, I am doing multiple (6) ajax calls (via jQuery) to fetch some data at the same time (using php wrapper to fetch the data via the calls)
- The requests are made at the same time and it takes them 10-20 seconds to complete
- If user clicks on any of the links to go somewhere else (to some other page), I can see that all the calls that didn't complete get cancelled
- However, the browser still waits for 20 seconds to navigate to the other page - it is like it is still waiting for the longest call to complete, even if it is cancelled
(Same issue is happening in Chrome and Firefox, ajax calls are asynchronous...I have tried to set ajax timeout, to capture readystate=o in ajax error response, even tried to do something with webworkers, to no avail)
Any insight would be helpful
Thanks!