Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8755005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T13:45:27+00:00 2026-06-13T13:45:27+00:00

https://github.com/jehrhardt/bigpipe-node/blob/master/app.js http://www.subbu.org/blog/2010/07/bigpipe-done-in-node-js I’ve noticed that all implementations of bigpipe need to flush the HTML.

  • 0

https://github.com/jehrhardt/bigpipe-node/blob/master/app.js
http://www.subbu.org/blog/2010/07/bigpipe-done-in-node-js

I’ve noticed that all implementations of bigpipe need to “flush” the HTML. In other words, something like this always happens:

// 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>')

Why can’t you just res.write(html) each section without flushing?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T13:45:28+00:00Added an answer on June 13, 2026 at 1:45 pm

    The whole point is to split big task of generating entire HTML into many small tasks ( aka pagelets ). For example assume you want to send to a browser two things: user details and details of a transaction he just made. Instead of doing both these tasks ( ie loading data from DB ) and sending HTML after that, you would load a user from DB an send it to browser, then load transaction from DB and send it to browser.

    This ultimetly leads to a better user experience and faster loading time ( because browser generates HTML chunk by chunk which is more efficient then everything at once ).

    Note that this was developed ( or at least widely used by ) Facebook, so read this article for more info:

    http://www.facebook.com/note.php?note_id=389414033919

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

https://github.com/nathanborror/django-basic-apps/blob/master/README.rst I am trying to implement this blog module my question is that the
I am using Lightbox2 https://github.com/lokesh/lightbox2/blob/master/js/lightbox.js And I don't understand why all the inner members
while running this example https://github.com/JakSprats/node_Redisql/blob/master/examples/redisql_examples.js gives me this error , ~/rahul$ node redissql.js node.js:178
https://github.com/seattlerb/zentest/blob/master/lib/autotest/autoupdate.rb It's not documented and I can't find any discussion about it on the
https://github.com/Doboy/Ti-83-Math-Tools/blob/master/triangle/TRIANGLE.txt As you can see when I go to the page above, the preview
this is the file: https://github.com/mozilla/rust/blob/master/src/etc/vim/syntax/rust.vim this is for rust [a new language from Mozilla]
I'm using this https://github.com/remy/html5demos/blob/master/demos/geo.html plug in. If a user has blocked to share his
https://github.com/koush/android-websockets/blob/master/src/com/codebutler/android_websockets/WebSocketClient.java What makes it a real websocket client instead of just a straight socket
Here's are examples of git workflows: https://github.com/bard/sameplace/wiki/typical-git-workflow http://www.nabble.com/Git-workflow-overview-td16340337.html http://osteele.com/archives/2008/05/my-git-workflow Let's say you wanted to
In https://github.com/Khan/khan-exercises/blob/master/khan-exercise.js there are two var Khan variables. How come? Do they affect each

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.