Reputation: 505
I'm trying to figure out what is the right way to use preload for videos.
There is a lot of crossed information on the web about using the preload attribute for videos. W3C indicated that i should use as="video" when preloading but i also found other information indicating i should us as="media" for videos.
Which one is the correct attribute between the two?
here's the link showing W3C statement.
Upvotes: 0
Views: 118
Reputation: 1230
In the documentation there is nothing related to as="media", only thing mentioned about media is this https://developer.mozilla.org/en-US/docs/Web/HTML/Preloading_content#Including_media where is specified that you can preload certain elements(image/video/etc) for certain media queries. The list is very clear and does not target any general media.
Upvotes: 1