title: Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience
body: <p>I am loading the content from other local pages using $.load but i get this error in both chrome and firefox.</p>
  
  <pre><code>Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience
  </code></pre>
  
  <p>This is my code</p>
  
  <pre><code>$(document).on("click", ".menuL", function() {
      var e = $(this).attr("href");
      $(".main").html('&lt;center&gt;&lt;img src="img/loader.gif" /&gt;&lt;/center&gt;');
      $(".main").load(e + session, function(response, status, xhr){
          if(status == "error") {
              window.location.href = '/home';
          }
      });
      return false
  });
  </code></pre>
  
  <p>I googled every possibile solution but all of them lead me to the same thing, setting async to true but how would I do that?</p>