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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -