You could try to switch to Wayland.
There are some things that do not work on Wayland yet, but at least some people report it seems to run smoother.
Would be good to monitor your memory usage (System → system Monitor → History or “top”, or “free -h”), with Youtube + Firefox I am running 4.2 Gi, you do not want to have this to come close to you 8GB.