title: RequireJS Conditional Loading Module in a synchronous way
body: <p>I have a module ModuleABC which loads modulea or moduleb depending on a flag, and after those module are loaded, calls init on the module method.  </p>
  
  <pre><code>ModuleABC.js
  define(['aa'],function(aa){
      var data;
      load = function(){
          if(data.IsAdmin){
              require(['moduleA'],function(modulea){
                  modulea.init(data);
              });
          }
          else if
          {
              require(['moduleB'],function(moduleb){
                  moduleb.init(data);
              });
          }
      }
      return initialize{
         load();
      }
  })
  </code></pre>
  
  <p>Another Module requires the ModuleABC, but By the time i reach moduleabc.load(), i will not have my modulea or moduleb init method called.</p>
  
  <pre><code>Another Module dependent on ModuleABC
  require(['ModuleABC'],function(moduleabc){
      moduleabc.load();
      By the time i reach here, i will not have my modulea or moduleb init method called.
      How do I achieve this?
  });
  </code></pre>