title: Ajax possible to return resource while it's being loaded?
body: <p>Using <a href="https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest" rel="nofollow">XMLHttpRequest</a>, I can retrieve a page / file dynamically:</p>
  
  <pre><code>var request = new XMLHttpRequest();
  request.onload = function() {
    console.log(this.responseText);
  };
  request.open("get", "/my_file.txt", true);
  request.send();
  </code></pre>
  
  <p>However, the <code>onload</code> callback only runs when the entire page is downloaded. There are no methods to return the page bit by bit while it is being loaded. This means that <code>XMLHttpRequest</code> does not have access to a huge file until it is loaded entirely.</p>
  
  <p>Is JavaScript able to retrieve the content of files (sent through HTTP <strong>1.0</strong>) while they are being loaded dynamically?</p>