Optimizing the performance while loading multiple YouTube videos on the same page
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.
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
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
Demo is available at https://wingkwong.github.io/lazy-load-youtube-videos/index.html
WONG, Wing Kam - @wingkwong
This project is licensed under the MIT License - see the LICENSE file for details