title: JS: [Deprecation] Synchronous XMLHttpRequest on the main thread is deprecated because of its detrimental effects to the end user's experience
body: <p>I'm receiving the error in my project trying an Ajax request</p>
  
  <blockquote>
    <p>[Deprecation] Synchronous XMLHttpRequest on the main thread is
    deprecated because of its detrimental effects to the end user's
    experience.</p>
  </blockquote>
  
  <pre><code>function getReviews() {
  var toReturn = $.ajax({
      url: 'API/reviews.json',
      async: false
  }).responseJSON;
  return toReturn;
  }
  </code></pre>
  
  <p>I would like to know if there is a different way to write this to not have that error</p>