Skip to content

Pure JavaScript library for optimizing the performance while loading multiple YouTube videos on the same page

License

Notifications You must be signed in to change notification settings

wingkwong/lazy-load-youtube-videos

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

lazy-load-youtube-videos

Optimizing the performance while loading multiple YouTube videos on the same page

Synopsis

Loading a number of iframe requires a great deal of time fetching resources. Under this situation, only thumbnails are loaded and the video is triggered only when its thumbnail is being clicked.

CDN

Download the compressed, production version

https://cdn.jsdelivr.net/npm/lazy-load-youtube-videos@0.1.0/src/llyv.min.js

https://cdn.jsdelivr.net/npm/lazy-load-youtube-videos@0.1.0/src/llyv.min.css

Download the uncompressed, development version

https://cdn.jsdelivr.net/npm/lazy-load-youtube-videos@0.1.0/src/llyv.js

https://cdn.jsdelivr.net/npm/lazy-load-youtube-videos@0.1.0/src/llyv.css

Demonstration

Demo is available at https://wingkwong.github.io/lazy-load-youtube-videos/index.html

Authors

WONG, Wing Kam - @wingkwong

License

This project is licensed under the MIT License - see the LICENSE file for details

About

Pure JavaScript library for optimizing the performance while loading multiple YouTube videos on the same page

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Sponsor this project

 

Packages

No packages published