I basically want all the highlighted information for api calls going from my app after the app has been loaded.
I am aware that there are performance timing apis like https://developer.mozilla.org/en-US/docs/Web/API/Performance using which we get the above mentioned fileds but the issue is this api only give the network requests at/up to page load and cannot poll for subsequent async/ajax calls.
I am wondering if this is a limitation currently or if there exists some other api I can use to retrieve the above mentioned metrics.
Did you look at
PerformanceObserver
? It observes these performance measurement events and is notified of the new entries too.You need to:
entrytypes
is supposed to be an array of thePerformanceEntry.entryType
.resource
is what you pass for resources.