title: Executing res.render asynchronously in express app
body: <p>I try to make this router response asynchronous:</p>
  
  <pre><code>var express = require('express'),
      router  = express.Router();
  
  router.get('/', function(req, res, next) {
    res.render('contact', {
      titleShown: true,
      title: 'Contact'
    });
  });
  </code></pre>
  
  <p>I tried to implement <code>async</code> that I read about <a href="https://stackoverflow.com/questions/18977996/executing-express-res-render-in-a-async-manner">here</a>, but not working:</p>
  
  <pre><code>var express = require('express'),
      router  = express.Router(),
      async   = require('async');
  
  router.get('/', function(req, res, next) {
    async.parallel([
      res.render('contact', {
        titleShown: true,
        title: 'Contact'
      })
    ], req);
  });
  </code></pre>
  
  <p>How can I do that?</p>
  
  <p>Error message that I got when I use the <code>--trace-sync-io</code> flag:</p>
  
  <pre><code>WARNING: Detected use of sync API
      at fs.statSync (fs.js:892:18)
      at tryStat (C:\www\node\website\node_modules\express\lib\view.js:169:15)
      at resolve (C:\www\node\website\node_modules\express\lib\view.js:142:14)
      at lookup (C:\www\node\website\node_modules\express\lib\view.js:110:17)
      at View (C:\www\node\website\node_modules\express\lib\view.js:85:20)
      at render (C:\www\node\website\node_modules\express\lib\application.js:569:12)
      at render (C:\www\node\website\node_modules\express\lib\response.js:961:7)
      at C:\www\node\website\routes\contact.js:9:7
      at handle (C:\www\node\website\node_modules\express\lib\router\layer.js:95:5)
  </code></pre>