title: Alternate ways of launching AJAX requests non-asynchronously
body: <p>I am in need of a better way to retrieve data from the my server and loading it into my application controller.</p>
  
  <p>Currently, I am using jQuery's built in <code>$.ajax</code>, but due to jQuery's focus on mostly UI/UX operations it doesn't wait for the result before return the results of a request, I don't know if I'm doing this right, but this is how I have it set up currently:</p>
  
  <pre><code>var get_data = function(){
      var result = false;
      $.get('/get/some/data').done(function(awesome_data){
          result = awesome_data;
      });
  
      return result;
  }
  </code></pre>
  
  <p>But this method doesn't work and just returns <code>false</code>.</p>
  
  <p>I've read that you can just tick the <code>async</code> option to false, but if the user is in a high-latency environment, it can easily hang the whole application (The application I'm writing is pretty hefty).</p>
  
  <p>Are there any other libraries that can do what I am trying to achieve, or is there a way to use <code>jQuery.AJAX</code> so that I can retrieve data from the server non-asynchronously and without hanging the application?</p>
  
  <p>Thanks for the help fellas.</p>