Jquery Error Synchronous XMLHttpRequest on the main thread is deprecated

This error will get in the following case,

  • Jquery ajax returns HTML content.
  • synchronous XMLHttpRequests by setting Jquery request as <b>async:false</b>
To fix it,
  • set <b>async:true</b> or just remove async part in Jquery
  • get return value from the server by JSON Object
        url:  "ajax_url",
        type: 'POST',
        async: true,        //look at this
        dataType: "json",
        success: function(result) {
            //json output
Jquery Javascript AJAX Posted on 2016-04-09 06:38:34