![]() That's why the code in the example above doesn't specify preloading for the video/webm video. Instead, the best practice is to specify preloading only for the type the majority of your users are likely to actually use. ![]() Therefore, specifying preloading for multiple types of the same resource is discouraged. Note that for users whose browsers have both video/mp4 and video/webm support, if in that code a element were also specified, then both the video/mp4 and video/webm videos would be preloaded - even though only one of them would actually be used. That makes the video player hopefully smoother/more responsive for users who have video/mp4 support in their browsers. The code in the example above causes the video/mp4 video to be preloaded only in supporting browsers - and for users who have video/mp4 support in their browsers, causes the video/mp4 video to actually be used (since it's the first specified).
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |