I have an HTML+JS+CSS page with known size. 

During page load, I wanna know how much bytes have been downloaded by browser. Is there any way?

(In fact, I want to know that just to show user a meaningful progress bar. i.e. progress bar advances by amount of bytes being downloaded.)
Thanks