Disable sounds during loading?

Simple, can I have an option to disable sounds when joining a server? I am watching videos or music when joining some servers and then their sounds play over mine.