title: RequireJS: To Bundle or Not to Bundle
body: <p>I'm using RequireJS for my web application. I'm using EmberJS for the application framework. I've come to a point where, I think, I should start bundling my application into a single js file. That is where I get a little confused:</p>
  
  <p>If I finally bundle everything into one file for deployment, then my whole application loads in one shot, instead of on demand. Isn't bundling contradictory to AMD in general and RequireJS in particular?</p>
  
  <p>What further confuses me, is what I found on the <a href="http://requirejs.org/docs/start.html#optimize" rel="nofollow noreferrer">RequireJS</a> website:</p>
  
  <blockquote>
    <p>Once you are finished doing development and want to deploy your code for your end users, you can use the optimizer to combine the JavaScript files together and minify it. In the example above, it can combine main.js and helper/util.js into one file and minify the result.</p>
  </blockquote>
  
  <p>I found this <a href="https://stackoverflow.com/questions/12232848/when-to-use-requirejs-and-when-to-use-bundled-javascript">similar thread</a> but it doesn't answer my question.</p>