title: RequireJS Load timeout for modules: error detail
body: <p>I need to expose better error detail from requireJS "load timeout for modules" errors so I can actually debug to find out what is causing the load timeout.</p>
  
  <p>I'm unable to get the error to appear on my development machine, but roughly 10% of our daily visitors are experiencing this error in the production environment (track.js is being used to gather these errors for visibility).</p>
  
  <ul>
  <li>The error is being thrown for my main.js file ("load timeout for modules: main") - the application entry point.  I've added the errback callback to try to log the error detail here but this error doesn't seem to hit this callback so it seems as though everything main.js is requiring is fine.</li>
  <li>I've added a global override for requirejs.onError and all I get here is the module name (main.js) and an error code of timeout.  </li>
  <li>I've used madge and have verified that there are no circular dependencies.</li>
  <li>I have optimized the build using r.js optimizer.</li>
  <li>I have set waitSeconds: 0 in require config (by my understanding should disable the timeout completely)</li>
  </ul>
  
  <p>How can I find out what module that is being required somewhere down the line is actually causing the timeout? Anything further to go on would be very helpful - I'm finding this incredibly hard to track down.  Thanks.</p>