title: Load scripts in a synchronous order in Require JS
body: <pre><code>   &lt;head&gt;
     &lt;script language="javascript" src="require.js" data-main="scripts/main" &gt;    
      &lt;/script&gt;
      &lt;script type="text/javascript" src="scripts/app.js"&gt; &lt;/script&gt; 
    &lt;/head&gt;
  </code></pre>
  
  <p>The main.js has all the necessary libraries required by app.js(angular module) and hence I want to ensure app.js gets loaded only after all the libraries in the main.js are resolved through require call. But since require js behaves asynchronous way, app.js file gets loaded before the libraries in main.js file is loaded and hence error resolving app.js.</p>
  
  <p>Kindly pour in your suggestions to restrict app.js from loading before main.js is loaded completely.</p>
  
  <p>Thanks
  Santhosh</p>