title: Node.js - asynchronous module loading
body: <p>Is it possible to load a Node.js module asynchronously?</p>
  
  <p>This is the standard code:</p>
  
  <pre><code>var foo = require("./foo.js"); // waiting for I/O
  foo.bar();
  </code></pre>
  
  <p>But I would like to write something like this:</p>
  
  <pre><code>require("./foo.js", function(foo) {
      foo.bar();
  });
  // doing something else while the hard drive is crunching...
  </code></pre>
  
  <p>Is there a way how to do this? Or is there a good reason why callbacks in <code>require</code> aren't supported?</p>