admin管理员组文章数量:1313140
I monitored the performance of our JavaScript application using Chrome's Developer Tools.
The output looks like this:
I don't really understand what "XHR Load" exactly means. According to Google reference, "XHR Load" is an event. So, what exactly does it mean that the XHR Load took 3014ms (in total)? Does it mean that the execution of the function triggered by this event took 3014ms?
I monitored the performance of our JavaScript application using Chrome's Developer Tools.
The output looks like this:
I don't really understand what "XHR Load" exactly means. According to Google reference, "XHR Load" is an event. So, what exactly does it mean that the XHR Load took 3014ms (in total)? Does it mean that the execution of the function triggered by this event took 3014ms?
Share Improve this question edited Aug 29, 2024 at 14:27 Nate Anderson 21.2k20 gold badges111 silver badges152 bronze badges asked Feb 2, 2018 at 10:43 itsame69itsame69 1,5705 gold badges17 silver badges38 bronze badges 2- 2 "XHR" is just a technical name for what people call an "Ajax request". This shows the loading time of the request, that took 3014ms – Kaddath Commented Feb 2, 2018 at 10:48
- 8 Are you sure? I fire only one ajax request. Why should this result in several "XHR Load" entries in the performance table? And "XHR Load" is the ajax request, I still don't know what exactly took 3014ms: the execution of the ajax request, parsing the string into a json object, executing the "success" function, ...? – itsame69 Commented Feb 2, 2018 at 10:54
2 Answers
Reset to default 2Check there https://web.archive/web/20190121025647/https://developers.google./web/tools/chrome-devtools/evaluate-performance/performance-reference
XHR Load => An XMLHTTPRequest finished loading.
XHR is referred to "XmlHttpRequest" and it allows to make HTTP request in JavaScript. Nowadays, there is another method called "fetch" that somewhat deprecates XmlHttpRequest.
本文标签: javascriptWhat does quotXHR Loadquot mean in Chrome Developer ToolsStack Overflow
版权声明:本文标题:javascript - What does "XHR Load" mean in Chrome Developer Tools? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741946482a2406446.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论