title: How do you get the file size of an image on the web page with Javascript?
body: <p>I'd like to be able to get the file size on an image on a webpage.</p>
  
  <p>So let's say I have an image on the page (that has loaded) like this:</p>
  
  <p></p>
  
  <p>How do I call a function in Javascript (or, even better, jquery) to get the file size (not the dimensions) of the image?</p>
  
  <p>It's important to note that I'm not using any inputs or having users upload the image, there's lots of SO answers on getting image sizes from browse buttons with the file API. </p>
  
  <p>All I want to do is get the file size of any arbitrary image on the page based of it's id and src url.</p>
  
  <p><strong>Edit: I'm dealing with a keep-alive connection for some images so the Content-Length headers are not available.</strong></p>