mirror of
https://github.com/YouG-o/YouTube-No-Translation.git
synced 2026-04-25 10:05:54 +03:00
[GH-ISSUE #73] FEATURE REQUEST: Please make reloading of tabs a suggestion #54
Labels
No labels
ToDo
bug
enhancement
enhancement
help wanted
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/YouTube-No-Translation#54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Thunder33345 on GitHub (Jul 29, 2025).
Original GitHub issue: https://github.com/YouG-o/YouTube-No-Translation/issues/73
Originally assigned to: @YouG-o on GitHub.
Problem
When i install this plugin, it reloads all my youtube tabs, making my CPU utilization spike into the 100%s
https://github.com/YouG-o/YouTube_No_Translation/blob/main/src/background/background.ts#L97-L114
I have 100+ youtube tabs in background, which are normally hibernated in background, taking up no system resources, reloading all of it brings the tabs back into foreground, spiking my CPU usage into 100%
Proposed Solution
Make the automatic reload a suggestion instead of an automatic action
I see that there's custom landing for initial opening of the config page
https://github.com/YouG-o/YouTube_No_Translation/blob/main/src/background/background.ts#L92-L94
I would appreciate if reloading of tabs is prompted as a suggestion on the welcome page, instead of automatically doing it without confirmation
This would make the first time experience much more welcoming, rather than sending the user's CPU into full blast
anyone who hoard tabs will appreciate this option, and know to politely decline instead
Alternative Solution
If prompting user is still extra friction, consider checking for discarded first would be appreciated
https://developer.chrome.com/docs/extensions/reference/api/tabs#properties_1
Avoiding reload of tabs that are
discardedwould prevent waking up 100 hibernated tabs, which since they arent loaded yet, it wouldnt result in the new plugin not functioningI still would prefer a prompt instead of an automatic action as it may interrupt user's background playback and anything else unsaved might be lost (like an unsent comment)
Additional Context (Optional)
CPU utilization increases to 100% after the plugin reloads all my youtube tabs, took me awhile to notice it also reloaded tabs on my other workspaces
@YouG-o commented on GitHub (Jul 29, 2025):
Yep, sorry about that.
You're the second person to complain about performance issues during installation because of too many YouTube tabs being open.
I still chose to do it anyway because I was super annoyed by people who don’t understand that the extension can’t access tabs that were loaded before installation, and then leave a bad review saying it doesn’t work.
I’ll definitely make it so that tabs in hibernation are ignored during the install refresh in the next update. They are auto-reloaded when opened by user anyway so they don't even need to be reloaded by the extension.
As for the prompt / alert message, I’ll think about what to put in place.
@YouG-o commented on GitHub (Jul 29, 2025):
I removed auto reload on install and added a warning on the Welcome page with a button to reload only active tabs.
Hope it will be visible enough to not bring back "It doesn't work" people 😁
@Thunder33345 commented on GitHub (Jul 29, 2025):
Thank you very much!!!
Hopefully, there's still complaints by others, i do think that only reloading loaded tab is an acceptable compromise
I probably wouldnt have made this issue if only my active tab is automatically reloaded (there was only one, which is the subscription page, and rest are hibernated)