title: requirejs - Performance of multiple calls to require
body: <p>I'm wondering what is the proper approach for using RequireJS in a project with multiple modules, regarding performance of multiple require calls with less dependencies vs a single require with all the dependencies.</p>
  
  <p>Let's take the case where, for an app, I need to load some modules: <code>gmaps, jquery, module1, module2, module3</code>. The use for some of the modules is quite independent. So, the question is which of the following alternatives is recommended (supposedly this code is the main module loaded into the page):</p>
  
  <pre><code>require(['gmaps'], function(gmaps){
     gmaps.use();
  });
  
  require(['jquery','module1'], function(jquery, module1){
     module1.use();
  });
  
  require(['jquery','module2'], function(jquery, module2){
     module2.use();
  });
  
  require(['jquery','module3'], function(jquery, module3){
     module3.use();
  });
  </code></pre>
  
  <p>vs</p>
  
  <pre><code>require(['jquery','module1','module1','module1','gmaps'], function(jquery, module1,module2,module3,gmaps){
     module1.use();
     module2.use();
     module3.use();
     gmaps.use();
  });
  </code></pre>
  
  <p>In other words, what is the performance penalty of <code>require</code> and which is the best practice.</p>