1

How to get the resource loading time of a specific resource through CDP protocol or the console of DevTools?

enter image description here

I can obtain the load time of resources in the following way, but this should only correspond to the load from cache time in the above picture

performance.getEntries().find((item)=>item.initiatorType==='link' && item.name.indexOf('') > -1)?.duration
CherryDT
  • 25,571
  • 5
  • 49
  • 74

0 Answers0