How to get list of network requests done by HTML

后端 未结 5 950
情话喂你
情话喂你 2020-11-27 16:46

How can i get the list of network requests using Javascript done by the HTML, as seen in the chrome devtools.

For example:

5条回答
  •  一生所求
    2020-11-27 17:41

    You can use Resource Timing API to get all relevant information (domain lookups, cache hits, redirects, etc.) about each resource being loaded on your website.

    You can read about it here. There is also a bookmarklet that generates a page load waterfall using this API.

    Resource Timing API is available in Chrome, Chromium, Chrome Mobile and IE10. Firefox team seems to be working on it.

提交回复
热议问题