speedtest icon indicating copy to clipboard operation
speedtest copied to clipboard

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

Open alistans opened this issue 1 year ago • 4 comments

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.

alistans avatar Jan 09 '25 08:01 alistans

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?

yomnaebrahim avatar Jan 10 '25 16:01 yomnaebrahim

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...

alistans avatar Jan 14 '25 12:01 alistans

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

PMazarovich avatar Jan 14 '25 15:01 PMazarovich

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

yomnaebrahim avatar Jan 14 '25 15:01 yomnaebrahim