作者:花都色魔l文龙l_419 | 来源:互联网 | 2023-05-16 15:37
Thewindow.performanceobjectexposesinformationaboutperformanceofthelastpageloaddonebyth
The window.performance
object exposes information about performance of the last page load done by the browser, including dns lookup times among others. However, I haven't been able to find anything similar for Ajax calls.
窗外。performance object公开关于浏览器完成的最后一个页面负载的性能的信息,包括dns查找时间等。但是,我还没有找到与Ajax调用类似的东西。
The higher-level problem I'm trying to solve is to be able to use Google Analytics to track load times. You can set custom events and track timing on Javascript, but there is currently no way of getting lookup times, and other relevant performance data. Maybe there is a way to get this information from the XMLHttpRequest
object?
我试图解决的更高层次的问题是能够使用谷歌分析跟踪负载时间。您可以在Javascript上设置自定义事件并跟踪计时,但是目前还没有获得查找时间和其他相关性能数据的方法。也许有一种方法可以从XMLHttpRequest对象获取这些信息?
2 个解决方案