admin管理员组文章数量:1333635
I thought that window.performance.getEntries()
would match the number of requests according to Chromium's 'Network' tab, but that doesn't seem to be the case: .png. What am I missing?
I thought that window.performance.getEntries()
would match the number of requests according to Chromium's 'Network' tab, but that doesn't seem to be the case: https://i.sstatic/OfKtH.png. What am I missing?
- And what's the question? – phts Commented May 26, 2015 at 10:32
- perhaps cached items aren't included? redirects? – CrayonViolent Commented May 27, 2015 at 1:40
- If somebody finds a way how to get all the loaded resources (like in network tab of devTools), I will be very thankful. – mmm Commented Nov 22, 2019 at 9:02
3 Answers
Reset to default 1If your page have multiple redirections, network tab shows everything whereas performance entiries shows only the resources from last/current document. Also the entries count doesn't include your HTML/document count where network counts that too.
I would also like to refer https://stackoverflow./a/18978803's answer.
In my Case some Requests were missing, which occurred after the Page had finished loading.
The Networking Tab showed all Requests, but window.performance.getEntries()
only Showed those who responded to the original Page Call (and not later actions on the Page). I believe performance.getEntries()
and the Resource Timing API only concern themselves with the original building of the Page.
Only taking chrome into consideration here, but the number of entries is limited. You can extend the limit by executing:
window.performace.setResourceTimingBufferSize(9999);
本文标签: javascriptWhat does windowperformancegetEntries() meanStack Overflow
版权声明:本文标题:javascript - What does window.performance.getEntries() mean? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742358222a2459840.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论