I would avoid ajax synchronous call. This will do something else on the page, like freezing the animation. Of course, with asynchronous calls, you need to make sure that they do not start to overlap. In your SetInterval, you can simply set the lock:
var doingAjax = false; setInterval(function() { if (!doingAjax) { doingAjax = true; jQuery.ajax({ ..., success: function() { doingAjax = false; ... } }); } };
source share