If you get a page's initial HTML, can you detect subsequent ajax requests?
Much like you can in the Developer Console, but programmatically. Have searched extensively for a solution but found none.
If you get a page's initial HTML, can you detect subsequent ajax requests?
Much like you can in the Developer Console, but programmatically. Have searched extensively for a solution but found none.
You can use PerformanceObserver
with entryType
set to "resource"
function perf_observer(list, observer) {
// Process the "resource" event
}
var observer2 = new PerformanceObserver(perf_observer);
observer2.observe({entryTypes: ["resource"]});
See