Firebug Net Panel 的计时:加载时间是多少?
我正在使用 Firebug 网络面板来查看响应时间。在网络面板的状态栏上,摘要显示如下:
10 个请求90KB 10.22s(加载6.57s)
加载时间是什么意思?这是否意味着一旦从服务器收到内容,页面又需要 6.57 秒才能可用(即 onready 事件完成)?
注意:我正在测试的网站包含大量 Qooxdoo 组件和大量 JavaScript。
I'm using the Firebug net panel to see response times. On the net panel's status bar, the summary is displayed as follows:
10 requests 90KB 10.22s (onload 6.57s)
What does that onload time mean? Does it mean that once the content was received from the server, it took another 6.57 seconds for the page to become usable (i.e. for the onready event to finish)?
Note: The site I'm testing is VERY heavy with Qooxdoo components and oodles of JavaScript.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
你的页面初始化顺序是:
所以'onload'是直到onload事件被抛出并完成执行的时间。 Firebug 中 onload 的计时都是 init 完成的,包括 onload 事件本身。
Onload 等待页面引用的所有资源,直到加载完毕(图像、脚本、CSS 等)。 onload 之后的事情更多的是初始化 - 通常由
setTimeout()
触发,以便在一切就位后执行操作。setTimeout()
中的任何内容都是新的调用堆栈,而不是 onload 的一部分。You page initialization order is:
So 'onload' is the time until the onload event is thrown and finished executing. The timing in Firebug for onload is all init up and including the onload event itself.
Onload waits for all resources referenced by the page up until onload has loaded (images, scripts, CSS, etc.). The things after onload are more initialisation - often triggered by
setTimeout()
to do stuff after everything is in place. Anything insetTimeout()
is a new call stack, and not part of onload.