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 times differ greatly when served online as oposed to run locally #7

Open
kholbekj opened this issue Jul 19, 2016 · 1 comment
Open

Comments

@kholbekj
Copy link

http://brawl-check.surge.sh/ serves a simple script that uses the ping library. Contrary to my expectations though, when i open this index.html file on my machine, times are in single diggits, when i open the served version, 3 diggits.

@YoniFeng
Copy link

YoniFeng commented Oct 6, 2019

The URL supplied needs to be fully qualified, e.g "http://google.com".
Otherwise, what gets requested is a relative path.
You can spot this by looking at the network tab in Developer Tools.

So for @kholbekj, when run locally he was requesting from localhost, and when accessed online he was requesting from his own server. Therefore the "discrepancy".

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