Preventing event listener for video.loadeddata from being added multiple times