gpt4 book ai didi

javascript - 如何通过 App Insights 获取与网页交互的时间

转载 作者:太空宇宙 更新时间:2023-11-04 15:28:50 25 4
gpt4 key购买 nike

我正在使用 Azure 的 App Insights 来获取网站的分析数据。从 browserTimings 和 Pageviews 设置中,我可以获得加载时间和接收持续时间。

我的网站有某些以 (async=true) 方式加载的 ajax 请求。因此,在 Chrome 网络捕获中,我可以看到 完成:2.15 秒,DOMContentLoaded:1.05 秒,加载:1.57 秒

问题陈述是如何获取 html (DOM) 准备好供用户在 App Insights 分析报告中进行交互的实际时间(哪个属性)。

最佳答案

答案是客户端处理时间。从这张图你可以更好地理解。

Clear Explanation

微软免责声明:

The time is measured from when the browser sends the initial HTTP request until all synchronous load events have been processed, including layout and running scripts. It doesn't include asynchronous tasks such as loading web parts from AJAX calls.

了解更多详情:MS documentation

关于javascript - 如何通过 App Insights 获取与网页交互的时间,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44973690/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com