sounds like your pc has too little RAM and pages ffxiv to your hdd once you maximize another program. Try looking at your HDD LED right after you maximize a program. If it starts blinking rapidly, wait till it stops and see if youtube will still continue to lag after that.