title: Deprecation Synchronous XMLHttpRequest
body: <p>I see this error: "[Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience. For more help, check <a href="https://xhr.spec.whatwg.org/" rel="nofollow noreferrer">https://xhr.spec.whatwg.org/</a>.", on this code:</p>
  
  <pre><code>var request;
  if(window.XMLHttpRequest){
      request = new XMLHttpRequest();
  }else{
      request = new ActiveXObject("Microsoft.XMLHTTP");
  }
  request.open('GET', 'http://www.mywebsite.com', false);
  request.send();
  </code></pre>
  
  <p>What should I replace the instructions with because they are deprecated?</p>