Shields causing memory leak on Spotify web

Whenever I start listening to a few songs with Shields on, I notice the tab using over 2GB of RAM. This doesn’t happen with Shields off; it always stays below 350MB.

Even with shields off I’m having “Out of Memory” errors and it is more frequent every time

1 Like

Blocking the spotify service worker url with shields and using a service worker blocking extension solved the issue for me.

Can you provide us with steps by steps for this workaround?

||open.spotify.com/service-worker.js in brave://adblock custom rules, save and reload spotify.com tab

Not an endorsement, haven’t tested this or if it breaks spotify or has any bugs. But do test. If it breaks just remove it. and report your findings.

using ||open.spotify.com/service-worker.js alone doesn’t prevent the service worker from running, i had to use “reject service worker” extension too. and the correct filter i’m using is : ||https://open.spotify.com/service-worker.js$script,domain=~spotify.com

both filters will do the same thing, but your filter won’t apply to spotify.com due to the ~

i think it’s a chromium issue because the memory leak came back randomly after so many days. Best solution is to use the spotify desktop app (patched) or Spotube

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.