Created
February 5, 2014 19:35
-
-
Save mchung/8831353 to your computer and use it in GitHub Desktop.
Preloading video trick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="preview"> | |
<div class="inner"> | |
<img src="/assets/site/placeholder-4abfbbec6d239b5708837804f8149b32.png"> | |
<video preload="auto"> | |
<source src="https://di3zio5pem6rb.cloudfront.net/site/preview.mp4" type="video/mp4"> | |
<source src="https://di3zio5pem6rb.cloudfront.net/site/preview.ogv" type="video/ogv"> | |
<source src="https://di3zio5pem6rb.cloudfront.net/site/preview.webm" type="video/webm"> | |
</video> | |
</div> | |
</div> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Interesting.