You can very easily and inexpensively upgrade this laptop to 16GB of RAM. I highly recommend you do this, it makes a world of difference.
If you don't already have an SSD in this device I recommend you swap that out also.
I would like to echo the recommendation for Firefox + uBlock Origin - you will see big improvements in perceived performance.
(typing this on my 2011 MacBook Pro in FF)