DEV Community

Discussion on: Lazy load embedded YouTube videos

Collapse
 
vivelapub profile image
VivelaPub

Hi Arvind. I had the exact same issue bugging me for a long time. All lazyloading codes and plugins I tried required 2 clicks on mobile for YouTube videos to play, and not only in Firefox! I've finally managed to make it work with 1 click even on mobile using the YouTube API V3. I've made a WordPress plugin out of it if someone is interested. You can see a demo here thinksmall.me/ and view its code.