title: JavaScript Autoloader?
body: <p>Is there a solution out there where I can have JavaScript/jQuery autoload dependent files when needed? For example, consider this scenario:</p>
  
  <ol>
  <li>I have an autoloader script listening for when a particular script needs to be loaded.</li>
  <li>A jQuery <code>dialog()</code> plugin is called.</li>
  <li>The autoloader is told to listen for when this plugin is called, and loads the jQuery UI.</li>
  <li>If more dialogs are called in the future, the required script will not be loaded.</li>
  </ol>
  
  <p>Is this too much effort for simply trying to limit bandwidth? Should I just include all of the core files in one superpackage and be done with it?</p>
  
  <p>Thank you for your time.</p>