title: How does RequireJS work with multiple pages and partial views?
body: <p>I'm looking into <strong>RequireJS</strong> but I'm uncertain about some things.</p>
  
  <p>I understand how I can load all my dependencies with <code>main.js</code>.
  But do I need to add any logic to work with those dependencies in <code>main.js</code>?</p>
  
  <p>To me, <code>main.js</code> seems like a document.ready state and you enter logic there when the document has loaded, right?</p>
  
  <p>And for other pages and partial views, do I need to create multiple <code>main.js</code> or can I just reference loaded functions in dependencies from the views in a <code>&lt;script&gt;</code> for example?</p>