Not sure whether anybody has similar query here, assume we do a performance tracing on a single page application completely loaded on a url, how to get the total waiting time on networking time for all resources?
Asked
Active
Viewed 221 times
1 Answers
1
I've never heard about an existing tool that would provide the exact metric you're looking for. But you could write a mini script that uses the Resource Timing API. It is easy to list all network requests and sum up waiting times. More info here.
Then, if you need to automate measures, you can use Puppeteer to run your script on a headless Chrome.

Gaël Métais
- 804
- 7
- 7
-
thanks very much for the advice, Resource Timing API would help me on this, will look in to it. – Ethan Wu Dec 06 '22 at 13:01