

Before you upgrade, see how much you’re utilizing swap space.
Type free
into a terminal to see this.
If you don’t see swap space, or if it looks under-utilized, you can increase the capacity and how much it’s used.
See how much it’s used with cat /proc/sys/vm/swappiness
. 60 is the default, anything less than that means swap space isn’t being used as often, anything greater means it’s being used more often.
I recommend just asking AI on how to increase swap space if what you see is not enough.
Weird, you’re overcomplicating things and receiving a worse experience as a result.
Just use ublock origin or adnauseam. Make sure you update/enable all of the blocklists in the settings.