Howto use lozad with videos?
See original GitHub issueHey!
I’ve included lozad.js with the cdn <script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script>
and I use this code for inserting my video:
<video class="lozad" autoplay muted loop playsinline poster="488x488.png">
<source data-src="files/videos/test.mp4" type="video/mp4">
</video>
If I then paste
const observer = lozad();
observer.observe();
in the console it adds the data-loaded="true"
to the <video>
but nothing happens.
Am I doing something wrong?
I thought it would convert data-src
to src
Issue Analytics
- State:
- Created 5 years ago
- Comments:10 (7 by maintainers)
Top Results From Across the Web
Learning About Lizards | Educational Videos for Kids - YouTube
Today we explore the interesting world of lizards by learning more about the Western Fence Lizard. Do you want to know how lizards...
Read more >Catching a Lizard Using NOTHING but WATER! - YouTube
Your browser can't play this video. Learn more.
Read more >How to Operate a CR-Scan Lizard? - YouTube
In this video, we will show you how to operate our new scanner CR-Scan Lizard.Buy now: Standard Combo: ...
Read more >You'll NEVER guess how I caught this lizard! - YouTube
Your browser can't play this video. ... Monitor lizards are far and away the largest lizards on earth and a variety of their...
Read more >Lizards For Kids! Learn All About Lizards With Diggy Dog!
Kids learn all about Lizards with Diggy Dog. In this fun and educational video children learn about lizards, where they live and what...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@obendev this should be fixed in
Lozad.js
this has been fixed in
v1.8.0
, thanks to @Levdbas