https://github.com/jehrhardt/bigpipe-node/blob/master/app.js http://www.subbu.org/blog/2010/07/bigpipe-done-in-node-js
bigpipeのすべての実装でHTMLを「フラッシュ」する必要があることに気づきました。言い換えれば、このようなことが常に起こります:
// header n stuff
res.write('<script>function flushHTML(id, html) {'
+ 'document.getElementById(' + id + ').innerHTML = ' + html
+ '};</script>')
// more stuff
// a "pagelet"
res.write('<script>flushHTML(' + someID + ', ' + myHTML + ');</script>')
res.end('</body></html>')
res.write(html)
フラッシュせずに各セクションだけを実行できないのはなぜですか?