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

Google Chrome On Mac Hangs When Clicking Links Quickly #18

Closed
alanwsmith opened this issue Oct 30, 2024 · 3 comments · Fixed by #21
Closed

Google Chrome On Mac Hangs When Clicking Links Quickly #18

alanwsmith opened this issue Oct 30, 2024 · 3 comments · Fixed by #21

Comments

@alanwsmith
Copy link

Details:

  • I'm seeing Google Chrome hang on my Mac when clicking around links quickly.

  • The issue isn't happening on Firefox.

  • I'm using code straight from the example

  • I made a repo that reproduces the issue. It has twenty or so example files with cross links between them.

  • I've been using tower_livereload for probably a year and I don't think this has been happening until recently.

@leotaku
Copy link
Owner

leotaku commented Nov 7, 2024

Hey thanks for the report, unfortunately I'm currently extremely short on time. I will hopefully be able look into this in a few weeks.

@alanwsmith
Copy link
Author

no worries. also just to mention in there's some info about my version of chrome and mac os in the example repo I set up. If there's any way I can help, just let me know.

@leotaku
Copy link
Owner

leotaku commented Nov 29, 2024

I've looked into this now, and I have been able to reproduce the issue as you have described it.

I think I have also figured out the problem. Chrome seems to "remember" the connections across page changes. So if you send a request using fetch and then change the page, the request keeps running in the background. We use long-poll connections to be notified of restarts so if you quickly click on a bunch of links, this causes a lot of simultaneous background connections, which seemingly locks up Chrome. Pretty weird if you ask me.

Expect a fix in a few days.

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

Successfully merging a pull request may close this issue.

2 participants