Skip to content Skip to sidebar Skip to footer

Prevent Video From Pre-loading On Website

I have the following code for a video on my website. I have the AutoPlay turned off in order to prevent playback as soon as I open the website. The problem is that the video still

Solution 1:

Don't include the code in your page. Inject it into the page once the user clicks a fake PLAY button.

Solution 2:

As Diodeus said, have it load "on-demand" by creating a javascript function.

Alternatively, I think you could use HTML5's video tag and leave preload off.

-- The Javascript solution is more friendly for older browsers, as not all support HTML5.

Post a Comment for "Prevent Video From Pre-loading On Website"