title: Continue after ajax complete without using the callback
body: <p>Trying to postpone further processing of script until ajax call is complete without using the callback.  Trying something like this, but it locks. How do I do this without locking?</p>
  
  <pre><code>var loaded=false;
  $.get(url,function(d){loaded=true;});
  
  while(!loaded)  //&lt;--locks here
    setTimeout(void(0),100);
  
  //continue script after ajax call is complete
  </code></pre>