Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What does window.performance.getEntries() mean?

I thought that window.performance.getEntries() would match the number of requests according to Chromium's 'Network' tab, but that doesn't seem to be the case: http://i.stack.imgur.com/OfKtH.png. What am I missing?

[screenshot showing mismatch]

like image 325
feng D Avatar asked Nov 01 '22 03:11

feng D


1 Answers

If your page have multiple redirections, network tab shows everything whereas performance entiries shows only the resources from last/current document. Also the entries count doesn't include your HTML/document count where network counts that too.

I would also like to refer https://stackoverflow.com/a/18978803's answer.

like image 169
Sriram Avatar answered Nov 12 '22 21:11

Sriram