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

Test requests don't stop after test completion if tab is not visible, bug? #44

Open
eugeniumegherea opened this issue Nov 5, 2024 · 0 comments

Comments

@eugeniumegherea
Copy link

Initially I thought there's a bug in our application and somehow we were leaking timers, but I was able to reproduce this issue on live cloudflare speed test.

Steps to reproduce:

  • open https://speed.cloudflare.com/
  • start the test
  • switch to other tab or minimize browser window
  • come back after a few minutes
  • you shall see a loop of network calls like in the video
Screen.Recording.2024-11-05.at.9.42.45.AM.mov

I suspect it has to do something with the performance api and the fact that chrome will aggressively slow down any internal timers if the page is not visible.

Here is the call stack from network:
image
which corresponds to this line:
image

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

1 participant