Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Handsome2734 opened this issue Sep 18, 2016 · 1 comment
Closed

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

Handsome2734 opened this issue Sep 18, 2016 · 1 comment

Comments

@Handsome2734
Copy link

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
Copy link
Member

Please see w3c/resource-timing#12.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants