We're calling on all EU-based Mozillians with iOS or iPadOS devices to help us monitor Apple’s new browser choice screens. Join the effort to hold Big Tech to account!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

详细了解

Why is Firefox HAR data page timings for onContentLoad and onLoad equal to -1

  • 3 个回答
  • 1 人有此问题
  • 3 次查看
  • 最后回复者为 Shadow110

more options

I'm testing the network performance of my website and I need to export a few samples of it. From the Firefox Dev Tools, I can "Save All As HAR", but viewing the contents the page timings is wrong.

Here is a sample of the HAR file and I am using Firefox 54.0.1:

   "pages": [
     {
       "startedDateTime": "2017-07-22T14:47:49.001+01:00",
       "id": "page_6",
       "title": "Mid-Latency",
       "pageTimings": {
         "onContentLoad": -1,
         "onLoad": -1
       }
     }
   ],

1. Why is the pageTimings = -1 and not (for example) 500ms? 2. Where is the waterfall data of each resources and timings?

I'm testing the network performance of my website and I need to export a few samples of it. From the Firefox Dev Tools, I can "Save All As HAR", but viewing the contents the page timings is wrong. Here is a sample of the HAR file and I am using Firefox 54.0.1: "pages": [ { "startedDateTime": "2017-07-22T14:47:49.001+01:00", "id": "page_6", "title": "Mid-Latency", "pageTimings": { "onContentLoad": -1, "onLoad": -1 } } ], 1. Why is the pageTimings = -1 and not (for example) 500ms? 2. Where is the waterfall data of each resources and timings?

被采纳的解决方案

It seems to be a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1174091

An alternative solution of getting the onLoad I've found, is to get the difference between the startedDateTime and add the last entry "time".

Not sure why this is the case, but I guess it will have to do. Can I get this closed?

定位到答案原位置 👍 0

所有回复 (3)

more options
more options

选择的解决方案

It seems to be a bug: https://bugzilla.mozilla.org/show_bug.cgi?id=1174091

An alternative solution of getting the onLoad I've found, is to get the difference between the startedDateTime and add the last entry "time".

Not sure why this is the case, but I guess it will have to do. Can I get this closed?

more options

Yes you can. Mark your reply as solved/helpful or..

I am glad to hear that your problem has been resolved. If you haven't already, please select the answer that solves the problem. This will help other users with similar problems find the solution more easily. Thank you for contacting Mozilla Support.