• <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 为单位的当前页面大小?

        How to get current page size in KB using just javascript?(如何仅使用 javascript 获取以 KB 为单位的当前页面大小?)
          <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 为单位的当前页面大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  Pause youtube video, youtube api(暂停 youtube 视频,youtube api)
                  Youtube iframe api not triggering onYouTubeIframeAPIReady(Youtube iframe api 未触发 onYouTubeIframeAPIReady)
                  How can I stop a video with Javascript in Youtube?(如何在 Youtube 中停止使用 Javascript 的视频?)
                  Embed YouTube video - Refused to display in a frame because it set #39;X-Frame-Options#39; to #39;SAMEORIGIN#39;(嵌入 YouTube 视频 - 拒绝显示在框架中,因为它将“X-Frame-Options设置为“SAMEORIGIN)
                  How to call Greasemonkey#39;s GM_ functions from code that must run in the target page scope?(如何从必须在目标页面范围内运行的代码中调用 Greasemonkey 的 GM_ 函数?)
                  How do you mute an embedded Youtube player?(如何使嵌入式 Youtube 播放器静音?)
                    <tbody id='n7rDQ'></tbody>

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

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

                        1. <tfoot id='n7rDQ'></tfoot>
                          • <legend id='n7rDQ'><style id='n7rDQ'><dir id='n7rDQ'><q id='n7rDQ'></q></dir></style></legend>
                          • <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>