title: JavaScript loading progress of an image
body: <p>Is there a way in JS to get the progress of a loading image while the image is being loaded?
  I want to use the new Progress tag of HTML5 to show the progress of loading images.</p>
  
  <p>I wish there was something like:</p>
  
  <pre><code>var someImage = new Image()
  someImage.onloadprogress = function(e) { progressBar.value = e.loaded / e.total };
  someImage.src = "image.jpg";
  </code></pre>