• <bdo id='uUgIG'></bdo><ul id='uUgIG'></ul>

      <small id='uUgIG'></small><noframes id='uUgIG'>

      1. <tfoot id='uUgIG'></tfoot>
      2. <legend id='uUgIG'><style id='uUgIG'><dir id='uUgIG'><q id='uUgIG'></q></dir></style></legend>
        <i id='uUgIG'><tr id='uUgIG'><dt id='uUgIG'><q id='uUgIG'><span id='uUgIG'><b id='uUgIG'><form id='uUgIG'><ins id='uUgIG'></ins><ul id='uUgIG'></ul><sub id='uUgIG'></sub></form><legend id='uUgIG'></legend><bdo id='uUgIG'><pre id='uUgIG'><center id='uUgIG'></center></pre></bdo></b><th id='uUgIG'></th></span></q></dt></tr></i><div id='uUgIG'><tfoot id='uUgIG'></tfoot><dl id='uUgIG'><fieldset id='uUgIG'></fieldset></dl></div>
      3. 如何仅使用 javascript 获取以 KB 为单位的当前页面大小?

        时间:2023-09-07
          <legend id='1X1TB'><style id='1X1TB'><dir id='1X1TB'><q id='1X1TB'></q></dir></style></legend>

                <tbody id='1X1TB'></tbody>
              <i id='1X1TB'><tr id='1X1TB'><dt id='1X1TB'><q id='1X1TB'><span id='1X1TB'><b id='1X1TB'><form id='1X1TB'><ins id='1X1TB'></ins><ul id='1X1TB'></ul><sub id='1X1TB'></sub></form><legend id='1X1TB'></legend><bdo id='1X1TB'><pre id='1X1TB'><center id='1X1TB'></center></pre></bdo></b><th id='1X1TB'></th></span></q></dt></tr></i><div id='1X1TB'><tfoot id='1X1TB'></tfoot><dl id='1X1TB'><fieldset id='1X1TB'></fieldset></dl></div>

                <small id='1X1TB'></small><noframes id='1X1TB'>

                <tfoot id='1X1TB'></tfoot>
                  <bdo id='1X1TB'></bdo><ul id='1X1TB'></ul>
                  本文介绍了如何仅使用 javascript 获取以 KB 为单位的当前页面大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  参考这个问题 , 如何获取当前页面大小 (kb), 我将使用这个大小来了解该页面的连接速度.

                  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.

                  推荐答案

                  除非你的页面大小以兆字节为单位,否则结果将毫无意义.

                  Unless your page has size in megabytes, the result will be meaningless.

                  这是因为连接、发送请求和等待服务器发送回复所需的时间是 相当大 与下载页面所需的时间相比,此外 TCP/IP 还有 慢启动.

                  This is because time needed to connect, send request, and wait for server to send reply back is quite large compared to time required to download the page, and in addition to that TCP/IP has slow start.

                  您还必须考虑缓存、代理和浏览器将建立的并行连接数(例如,可能优先下载脚本和样式,使页面下载时间显得很慢).

                  You also have to take into account caches, proxies and number of parallel connections that browser will make (e.g. may prioritize download of scripts and styles, making page download time appear slow).

                  这篇关于如何仅使用 javascript 获取以 KB 为单位的当前页面大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  上一篇:谷歌分析 - 一页上有多个跟踪器(cookie 冲突) 下一篇:Facebook Like 按钮是如何工作的?

                  相关文章

                    <bdo id='n7rDQ'></bdo><ul id='n7rDQ'></ul>

                  <small id='n7rDQ'></small><noframes id='n7rDQ'>

                    1. <tfoot id='n7rDQ'></tfoot>
                    2. <legend id='n7rDQ'><style id='n7rDQ'><dir id='n7rDQ'><q id='n7rDQ'></q></dir></style></legend>
                    3. <i id='n7rDQ'><tr id='n7rDQ'><dt id='n7rDQ'><q id='n7rDQ'><span id='n7rDQ'><b id='n7rDQ'><form id='n7rDQ'><ins id='n7rDQ'></ins><ul id='n7rDQ'></ul><sub id='n7rDQ'></sub></form><legend id='n7rDQ'></legend><bdo id='n7rDQ'><pre id='n7rDQ'><center id='n7rDQ'></center></pre></bdo></b><th id='n7rDQ'></th></span></q></dt></tr></i><div id='n7rDQ'><tfoot id='n7rDQ'></tfoot><dl id='n7rDQ'><fieldset id='n7rDQ'></fieldset></dl></div>