javascript - Why calling jQuery AJAX request with JSONP blocks ui on iPad? -
i'm using next code perform long polling in webapp. server configured respond requests data later parse onsuccessgetmessages
.
function getmessages() { jquery.ajax({ type: 'get', datatype: 'jsonp', url: communicationinfo.urltosend, timeout: communicationinfo.requesttimeout }) .done(onsuccessgetmessages) .fail(function() { console.log("getmessages - failed"); settimeout(getmessages, communicationinfo.timeoutbetweenrequests); }); }
the problem while working great when running in desktop chrome, on ios 6 ipad (chrome , safari) causes gui animations , effects act sluggish.
how can resolve issue?
Comments
Post a Comment