title: Dynamic html elements to callback in require cache
body: <p>I want to change/use/pass html element as dynamic based on user. How do I achieve.</p>
  
  <p>I have used ajax request for getting and setting values to global variable before require cache. But its won't work because ajax take little time and require runs instantly.</p>
  
  <pre><code>        var ajaxReturn = "";
  
          $.ajax({
                  url: "http://localhost:8080/domain/_search?q=DomainId:15&amp;from=0&amp;size=100",
                  type: 'GET',
                  success: function (result) {
  
                      ajaxReturn = '&lt;div data-dojo-attach-point="dropDownNode"&gt;&lt;/div&gt;';
                  },
                  error: function () {
                      console.log("Error....");
                  }
          });
  
  
          require({
              cache: {
                  "url:local/store/dropDown.html": ajaxReturn
              }
          });
  
          define("local/store/dropDown", "a, b, c, d, e, f".split(" "), function(a, b, c, d, e, f) {
  
              a = a(d, {templateString: e});
  
              return a
          });
  </code></pre>
  
  <p>I want to pass dynamic html elements to ajaxReturn in inside the require cache.</p>