title: load javascript file before onload with requirejs
body: <p>I would like to use requireJS. However, I have a lib that needs to be loaded before the DOM. However, this is not what happens with requireJS</p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
          &lt;script data-main="/app" src="/require.js"&gt;&lt;/script&gt;
      &lt;/head&gt;
  
      &lt;body&gt;
          &lt;bar-foo/&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>With app.js</p>
  
  <pre><code>require.config({
      paths: {
          'customElement': '/customElement',
          'barfoo': '/barfoo'
      },
      shim: {
          barfoo: {
              deps: [ 'customElement' ]
          }
      }
  });
  define(['barfoo'], function() {
      ....
  }
  </code></pre>
  
  <p>For example, if I simply load this script directly in the head (without requireJS) it works fine. Is there a require-config-option so I can load a specific file immediately (synchronously?) ?</p>