title: How to create an Incremental loading webpage
body: <p>I'm writing a page dealing with a large amount of data. It would last forever until my resultant page loaded (nearly infinite) because the data returned is so large. Therefore, I need to implement an incrementally loading page like one at thie url: </p>
  
  <p><a href="http://docs.python.org/" rel="nofollow noreferrer">http://docs.python.org/</a></p>
  
  <p>Everytime a search term is entered, it will continue to load, and load, until it got some result, it will display incrementally, pretty cool :D. </p>
  
  <p>[edit] I am using python CGI (server) + Jquery (client). I have asked a similar question here :</p>
  
  <p><a href="https://stackoverflow.com/questions/1873735/display-the-result-on-the-webpage-as-soon-as-the-data-is-available-at-server">Display the result on the webpage as soon as the data is available at server</a></p>
  
  <p>The fact that I am trying to request a script on server ONLY ONE and let the client page incrementally displays out coming results has given me headache. If I don't get in wrong, the long poll, or something like that is not applied to this situation right?</p>
  
  <p>I am trying to do flush() thing but perhaps I am missing something here, I can not make it to work :(, the result always comes to client all at once. Plus getting the first few bytes, first few results are very general term. I would really appreciated with one can give me some running code, cuz I am very confusing now. Thanks so much. </p>
  
  <p>[edit] As I am trying to stick with call-on-only manner, I manage to shut of the mod_deflate of apache2 but so far I failed. I googled this problem and there comes some cases like myself, it's no luck :(.</p>