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

Ping failed to return time #16

Closed
RelaxLiu opened this issue Aug 31, 2017 · 1 comment
Closed

Ping failed to return time #16

RelaxLiu opened this issue Aug 31, 2017 · 1 comment

Comments

@RelaxLiu
Copy link

Ping what is the reason for the return of a domain name that does not exist?

github.xxx//favicon.ico?1504163468779:1 GET https://github.xxx//favicon.ico?1504163468779 net::ERR_NAME_NOT_RESOLVED
error 12
error loading resource

this 12 Why would you return?

@alfg
Copy link
Owner

alfg commented Sep 7, 2017

Hi @RelaxLiu,

The favicon might not always exist on the server, but the client will attempt to load it anyway and return a response time either way. Err is returned if the favicon didn't respond.

See: https://github.com/alfg/ping.js#notes for my note on this method.

If there's a better way to do this, suggestions are welcome!

@alfg alfg closed this as completed Sep 7, 2017
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