0

This is captured from chrome's developer console

Based from the attached image, is it actually possible to retrieve the data in javascript/Node.js?

I've had already looked into Firefox's documentation for performance.getEntries() and it displays were performance results, none of them captured the containing data/responses .

Doing something like

return performance.getEntries();

or

return performance.getEntriesByType("resource");

will return a json formatted lists, none of them contains the data needed to be extracted.

batuzai04123
  • 379
  • 5
  • 12
  • That looks like a URL query... if you own the server/client then you should be able to get the data/response... however I'm more curious to hearing how to feed back the browsers performance to the server as a benchmark – Denis Tsoi Mar 29 '17 at 14:45

1 Answers1

0

It seems to me that it is a ajax request, if you can set a hook of all the ajax request, then you can store and retrieve them. You can do this by type code on chrome's console, and the code you may need is here: Add a "hook" to all AJAX requests on a page. Basically it rewrite the XMLHttpRequest.prototype.send method to do what you need.

Community
  • 1
  • 1
lei liu
  • 2,735
  • 1
  • 16
  • 18