だから私はかなり基本的なajaxリクエストを行っていますが、Chromeでノンブロッキングにすることはできません。このリクエストに何か問題がありますか?IEはそれをうまく処理しますが、クロムは数秒間完全にフリーズします。タイムアウトイベントは、chromeがフリーズを停止した後に発生します。
setTimeout(this.onExtendedSaveTimeCallback, 1000);
this.isSaving = true;
this.request = $.ajax({
url: 'http://same-origin.com',
type: 'POST',
dataType: 'html',
data: data,
async: true,
});
this.request.done(function(response) {
self.isSaving = false;
self.$rootElement.find('.save').removeClass('saving');
if(response != "SUCCESS")
{
// The input did not pass validation
// Show the error message
self.$rootElement.find('.edit-mode-content').prepend(response);
self.$rootElement.find('.error').slideDown(200);
self.$rootElement.find('.save').html('Spara');
self.unblockRowInput();
}
else
self.close(true);
});