Take the 2-minute tour ×

There is an audio and video component to the webpage I'm making. Additionally, I'm using google maps which has google.setOnLoadCallback which waits for the page to finish loading. My problem is that the google map is delayed showing up until the video and audio is loaded, which is kind of too long. Is there a way to make it so that the map will display before the video is done loading?

share|improve this question
How are you integrating the audio and vidio? Native HTML5 elements? Flash? –  steveax Nov 27 '11 at 8:30
I'm using <video src="movie.mp4"/> and <audio src="song.mp3" /> –  Alexis Nov 27 '11 at 9:04
add comment

2 Answers

Ask the browser to either not load the audio/video or to load the metadata only using the preload attribute:

<video src="movie.mp4" preload="none"></video>


<video src="movie.mp4" preload="metadata"></video>

The audio element will accept that parameter also.

share|improve this answer
add comment

Your Answer


