Twitch-Tools icon indicating copy to clipboard operation
Twitch-Tools copied to clipboard

Issue: Endless Tab Looping with Slow Connections or Slow Loading

Open P-rox-y opened this issue 10 months ago • 6 comments

Describe the bug When Twitch streams are initiated under slow connections, key modules fail to load. Twitch Tools, after waiting about 30 seconds (varies), tries to resolve this by opening another tab for the unresponsive stream. This can lead to a loop where new tabs are continually opened if they don't load promptly, especially since original unresponsive tabs aren't closed. It's unclear if Twitch Tools is waiting for all Twitch modules to load or just its own before this retry mechanism triggers.

To Reproduce

  1. Open multiple streams with a slow connection, or expended loading times. (Alternative way to reproduce; you can open multiple streams very quickly and you should see same issue occur)

Expected behavior Be able to launch multiple streams quickly and have them load Twitch Tools normally even if the browser is taking a longer than normal/average amount of time to finish loading each stream either due to slow internet connection or slow loading times due to the amount of streams being launched quickly.

Screenshots If having issues reproducing the problem, I can see if I can get a recording of it happening on request.

Extension Information

  • Version: 5.32.9
  • Source: store
  • Browser: chrome
  • Operating System: Windows

Additional comments Possible suggested fixes:

  • Allow users to adjust or disable the timeout leading to the auto-reload function.
  • Close original tabs before opening new ones.
  • Notify users when slow load or failure occurs, offering action choices.
  • Set a max retry limit to avoid endless looping.
  • Focus on reloading only malfunctioning modules instead of entire pages.
  • Check if original tabs are still active before opening new ones.
  • Optimize module loading and use caching for better performance.

P-rox-y avatar Aug 10 '23 01:08 P-rox-y