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

Speedtest continues if you switch tabs during test when installed through npm #49

Open
alistans opened this issue Jan 9, 2025 · 4 comments

Comments

@alistans
Copy link

alistans commented Jan 9, 2025

My issue is a lot like #44 except the test at https://speed.cloudflare.com/ doesn't reproduce this issue, that one works fine.
It happens in my web app with versions 1.3.1 and 1.4.0 installed through npm. When I install 1.3.0 this issue doesn't happen. I saw that #44 was fixed in 1.3.1 so that's really weird, could it be a problem with the npm package?
I'm just gonna use 1.3.0 for now since that one works fine, but it might be worth checking out.

@yomnaebrahim
Copy link
Contributor

so before fixing issue 44 the tests was stopping when you switch tabs but after it was fixed in version 1.3.1 it doesn't pause when you switch tabs?

I debugged the version 1.4.0 and it pauses the tests when i switch tabs in chrome.

Could you describe more what you were experiencing before fixing issue 44 and what is the issue you are seeing now with steps to reproduce?

@alistans
Copy link
Author

alistans commented Jan 14, 2025

In version 1.3.0 when I start the test, switch to another tab and then go back to the tab with the test it doesn't show any cloudflare network calls after finishing.
When I do the same in 1.3.1 or 1.4.0 the network calls do continue after finishing the test exactly like in issue 44.
When I do the same in the build at https://speed.cloudflare.com it works fine (which I presume is 1.4.0?), no network calls after finishing the test.
All these I have tested in a Chrome browser on a Mac, and I've installed the package for our web app through npm
We now switched to a different speedtest though, but hope this can still be of some sort of help...

@PMazarovich
Copy link

Same here.
I open tab 1, speedtest happened successfully.
When second tab is opened in the same browser and the second tab starts the speedtest, first tab start the infinite download process.

Image

@yomnaebrahim
Copy link
Contributor

okay, we will investigate and work on a fix. Thanks for raising

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

3 participants