ContentLength of page is not available, how to calculate progress value?

202 Views Asked by At

i have a problem that the content-length of header is undetermined ie -1 in my case. So can anyone please give me an idea on how to calculate the progress for the progress view, so that i display the progress view as the page loads.. .. thanks in advance!! :

2

There are 2 best solutions below

2
On BEST ANSWER

It's impossible by definition. If you don't know how big IT is, you can't know how much of IT you now have or how much of IT there still is.

0
On

There isn't a way to. In a webbrowser they usually say '33k of unknown' or show a ajax-y spinner