How to get current page size in KB using just javascript?

后端 未结 5 1491
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-06 02:48

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.

5条回答
  •  一个人的身影
    2020-12-06 03:25

    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.

提交回复
热议问题