Synchronous xmlhttp error

hi guys

after the update with composer,this error appeared in my application when send a jquery ajax request :


Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check http://xhr.spec.whatwg.org/.

There is no one to help me. :-[

  • Do not use synchronous ajax requests ($.ajax({async: false})) in your own code. Try to imlement some kind of ajax queue instead, if necessary.

  • If, for some reason, you have no choice and have to to use synchronous requests, simply ignore the warning.

  • If you find out that the warning was caused by a yii2 core component, report an issue.

just one callback and that’s it.





func2(this_is_callback) { this_is_callback(); }




func2(function() {do it});

phtamas thank for the solution,I don’t use {asyns:false} and I’ve implement ajax request methods but it displayed yet.

uEhlO4a Thanks for the reply, but how to do it ?