If a web page is loading a very large chunk of JSON, and displaying a progress bar to assure the user that something is actually happening while he's waiting, is it possible to actually measure how much of the JSON has been downloaded at any given time, so that the progress bar can actually reflect reality, rather than a wild guess?
The total size of the file would be determined by getting the Content-Length
response header.