You can force YouTube to use H264 instead (via extensions like H264ify), that should reduce the processing load.
The CPU will be struggling with most modern video formats including h.264.
Nowadays on an n270 CPU based netbook I use mpv and yt-dlp capped to 420p, even if I can play 720p@30FPS.