PDA

View Full Version : How to get transferred data size for a panel



hellosatya
31 Mar 2014, 8:55 PM
Hi,

I have an iframe panel and I'm displaying an external html page on it. Is there any way I can get byte transferred ( size of html and images ) and transfer time.

Thanks

greg.barry
3 Apr 2014, 9:05 AM
I don't believe that client side is going to be the right answer for you. Security restrictions would prohibit you from accessing/measuring the iframe's window or document object if the page is not same-origin.

There are several ways of grabbing the page via server side language and then measuring bytes that way. Though, in terms of transfer time, that seems like it has the potential to yield different results than a real browser pulling that data.

Thanks!
Greg

hellosatya
8 Apr 2014, 2:13 PM
It has predefined servers so iframe loads page not from same origin but still it is from defined origin which is configured to allow cross-origin. Something like server 'A' is having extjs app and loading data from server 'B'. So I'm successful to load page/data from server 'B' but not sure how much total data it loaded from server 'B', directly to browser.