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
Add a ment  | 

2 Answers 2

Reset to default 2

Check 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