what it says, if your async: false request, then you should not use the ajax.done() , ajax.fail() methods, etc. to register the callback methods, instead you need to pass the callback methods using the success/error/complete parameters so that the ajax call
right
$.ajax({ async: false, success: function(){ }, error: function(){ }, complete: function(){ } })
wrong
$.ajax({ async: false }).done(function(){ }).fail(function(){ }).always(function(){ })
if async: true // not specified
right
$.ajax({ }).done(function(){ }).fail(function(){ }).always(function(){ })
or
$.ajax({ async: false, success: function(){ }, error: function(){ }, complete: function(){ } })
source share