Preloading


show more Preloading provides you with in-depth training on Video. Taught by Steve Heffernan as part of the HTML5: Video and Audio in Depth show less
please wait ...

Preloading

One option we have with HTML5 video is preloading. Preloading means the browser will begin loading the video data as soon as the page is loaded instead of waiting until the user clicks Play. Without preloading, the user might have to wait a little bit while the video buffers enough data so it doesn't have to buffer again later during playback. A downside of preloading is that the video data is loaded every time the page is viewed, even if the user never watches the video. This can cause waste of bandwidth and unnecessary cost for you and your users, especially those on mobile devices where data transfer can be expensive.

So there are good and bad times to use it and we will go over that in a second but first let's see how it is that we do use it. To add preloading first let's go back to our code. We're now in the 2-03 folder of the exercise files. I need to add the preload attribute and a preload attribute is an enumerated attribute which means it can take one of a limite...

Preloading
Video duration: 4m 16s 2h 7m Intermediate

Viewers:

Preloading provides you with in-depth training on Video. Taught by Steve Heffernan as part of the HTML5: Video and Audio in Depth

Subjects:
Video Web
Software:
HTML
Author:
please wait ...