Has to be in the canplay event, not document.load