Youtube uses VP9 by default, which may be a bit demanding for your system. You should try the "h264ify" extension: https://addons.mozilla.org/en-US/firefox/addon/h264ify/?src=search

Also, Firefox...