Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
First lets see if it is only a Safari issues, install Google Chrome and visit youtube.com and see if the issue persists. If it does check the "App store" for any Safari related updates.