-
-
Notifications
You must be signed in to change notification settings - Fork 676
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lazy loading a video poster image #365
Comments
So the thing you’re asking is to make the poster images lazy as video. Right? |
I think we are talking about the same thing. To clarify, asking for lazy loading of the poster image (via the poster attribute) for video elements. |
Sorry about the delay. Rough times. <video class="lazy" controls width="620"
data-src="lazy.mp4" data-poster="lazy.jpg">
<source type="video/mp4" data-src="lazy.mp4">
<source type="video/ogg" data-src="lazy.ogg">
<source type="video/avi" data-src="lazy.avi">
</video> |
Just released in version 12.4 |
@verlok Yeah that looks great, thanks for implementing! |
You're welcome. |
Hi, super interesting for me, too. How would I do it using Videojs under React? Just add another property to the Lighthouse tells me I tried adding the properties Thanks for the help! |
Didn't see it mentioned in the docs, but was wondering about support for lazy loading the poster image for a video element.
I've seen it implemented in a similar lazy loading lib: malchata/yall.js#32
Thanks!
The text was updated successfully, but these errors were encountered: