Referring to this question , how can i get the current page size in kb, this size i will use to know the connection speed for this page.
I think grabbing a known data file via Ajax would be a better solution than measuring the current page. It's easier to time the start and completion of an Ajax call.