w3c / performance-timeline

Performance Timeline
https://w3c.github.io/performance-timeline/
Other
111 stars 27 forks source link

performance.getEntries() can't get failed requests. #59

Closed Handsome2734 closed 8 years ago

Handsome2734 commented 8 years ago

For example, I added '0.0.0.0 avatars2.githubusercontent.com' into /etc/hosts, then visited github.com. After page fully loaded, I run performance.getEntriesByType('resource').filter(function(entry){return /avatars2\.githubusercontent\.com/.test(entry.name)}); in the console, I got nothing. However in production env, sometimes it's important to know how many requests are timeout or aborted by the browser. Hope there will be an api or some way to get that.

igrigorik commented 8 years ago

Please see https://github.com/w3c/resource-timing/issues/12.