how to get length/size of a webpage using javascript
问题 We get the webpage timing info using w3c navigation API. we get the resource information using the resource timing API. Now, how to get the size of the webpage. It appears that if I know when the page loaded, etc, I should know when the last byte was downloaded -- this should be enough to give me the length/size of the page. How do I get this length/size ? 回答1: Found the answer at : How to get current page size in KB using just javascript?. User @Stev has answered it document