title: Delay the loading of an Ember View template until completion of AJAX request
body: <p>It doesn't look like it is possible to delay the load of a template until a response comes back from an AJAX request inside the willInsertElement property of an Ember View?  </p>
  
  <p>I would like to load jquery-ui.min.js before the template renders.</p>
  
  <pre><code>window.App = Ember.Application.create()
  
  App.TestView = Ember.View.create
      tagName: 'div'
      template: Ember.Handlebars.compile '&lt;div&gt;This is a view&lt;/div&gt;'
      willInsertElement: -&gt;
        $.ajax({
          url: "https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.18/jquery-ui.min.js"
          dataType: "script"
          async: false
          success: (data, textStatus, jqxhr) -&gt;
            console.log data
            console.log textStatus
            console.log jqxhr.status
            console.log "Load was performed."
        });
      didInsertElement: -&gt;
        console.log 'the element was inserted'
  
  App.TestView.append()
  </code></pre>
  
  <p>I'm finding that the didInsertElement runs before the AJAX request is finished.</p>
  
  <p>Thanks in advanced.</p>