window.performance.getEntries()是什么意思? [英] What does window.performance.getEntries() mean?

查看:369
本文介绍了window.performance.getEntries()是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我认为,根据Chromium的网络"标签,window.performance.getEntries()将与请求数量匹配,但事实并非如此: http://i.stack.imgur.com/OfKtH.png .我想念什么?

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: http://i.stack.imgur.com/OfKtH.png. What am I missing?

推荐答案

在我的情况下,某些请求丢失了,这些请求是在页面完成加载后发生的. 网络"选项卡显示了所有请求,但window.performance.getEntries()仅显示了响应原始页面调用的那些用户(而不显示页面上以后的操作).我相信performance.getEntries()资源计时API 只关心页面的原始建筑.

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.

这篇关于window.performance.getEntries()是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆