Vulpelo / hide-youtube-shorts

Browser add-on that hides YouTube-shorts videos
GNU General Public License v3.0
138 stars 4 forks source link

YouTube Stuttering and Slow Load Times with uBlock Origin Enabled #39

Open GrassCrestShield opened 9 months ago

GrassCrestShield commented 9 months ago

Title: YouTube Stuttering and Slow Load Times with uBlock Origin Enabled

Description:

I've been using Hide Shorts for YouTube (version 1.6.4) on Firefox and it's been working great. However, I've recently encountered an issue when uBlock Origin (version 1.55.0) is enabled alongside Hide Shorts for YouTube.

Issue:

When both Hide Shorts for YouTube and uBlock Origin are enabled, YouTube starts to stutter and load slower than usual. In addition, I've noticed a spike in single-core CPU usage during this time.

Interestingly, when uBlock Origin is enabled on its own (without Hide Shorts for YouTube), I do not experience this stuttering or slow load times. This leads me to believe that the issue may be related to some interaction between Hide Shorts for YouTube and uBlock Origin.

Potential Cause:

Recent updates to YouTube could be a potential cause of this issue. There have been reports of YouTube slowing down for users with ad blockers. The slowdowns were initially blamed on YouTube, but it was later determined that the issue was with the Adblock Plus extension. Specifically, a bug in a recent update of Adblock Plus was identified as a likely contributor to these slowdowns.

However, this bug in Adblock Plus is not causing the issue when both Hide Shorts for YouTube and uBlock Origin are enabled. It's possible that an update to YouTube, which ended up causing a similar issue with Adblock Plus, may have introduced changes that are causing the observed issues when both Hide Shorts for YouTube and uBlock Origin are enabled.

Steps to Reproduce:

  1. Enable both Hide Shorts for YouTube and uBlock Origin on Firefox.
  2. Navigate to YouTube and start watching a video.
  3. Observe stuttering, slow load times, and increased single-core CPU usage.

Expected Behavior:

YouTube should load smoothly and quickly, without causing significant CPU usage spikes, regardless of whether uBlock Origin is enabled.

Actual Behavior:

YouTube stutters, loads slowly, and causes single-core CPU usage spikes when both Hide Shorts for YouTube and uBlock Origin are enabled.

Environment:

GrassCrestShield commented 9 months ago

Update:

I am still experiencing the same issue with the most recent version of Hide Shorts for YouTube (version 1.7.2). YouTube continues to stutter and load slower than usual when both Hide Shorts for YouTube and uBlock Origin are enabled. The single-core CPU usage also spikes during this time.

Vulpelo commented 9 months ago

Thank you for descriptive information. Unfortunately with both uBlock Origin and Hide Shorts for YouTube plugins turned on, I haven't experienced any video slowdown or stuttering as you have described.

Do you have any specific filters setup on uBlock Origin?

Also I am guessing that setting an option "Timeout before rechecking videos" in Hide Shorts for YouTube made no difference?

Nevertheless during performance testing I did have noticed some potential slowdowns. I will look into fixing it, to improve the plugin's performance.