Reputation: 31
I have some ajax call which are waiting for data asynchornously. When my iPad Air 2 with iOS 9.2 using Chrome, goes in sleep mode the asynchronous callback is never executed.Not in sleep mode not when it comes out of sleep mode. No exception, no error. Completely vanishes. So my screen remains with old data. Any information it is know issue/ workaround?
Futher I found this happens iOS for several other occasions also, 1. Hold the page by multiple fingers drag down. 2. Minimize the browser and maximize 3. If you have multiple tab, make your tab inactive for few sec ( approx.5 sec)
Also as i understood that every browser limits active ajax request to max 4 or 6. If this issue occurs 6 times by any of the above means then all remaining ajax request goes in queue. The only option left is to close the tab and start with new session.
Upvotes: 1
Views: 83
Reputation: 31
Instead of using jquery $.ajax() I used $.jsonp() and it solved the issue.
Upvotes: 1