Skip to content

Youtube Delayed Loader - a small script allows you to load youtube player on page only when the user wants to watch the video. This is very helpful when your page contains a lot of Youtube videos which slow down its load.

License

mad-gooze/YoutubeDelayed.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

YoutubeDelayed.js

Youtube Delayed Loader - a small script which allows you to load youtube player on page only when the user wants to watch the video. This is very helpful when your page contains a lot of Youtube videos which slow down its load.

Usage

Include YoutubeDelayed.js and YoutubeDelayed.css (or minified versions) in page. Put the code: <div data-videoid="{Your Youtube video ID}" class="YoutubeDelayed"></div> where you what the player to be displayed.

Demo

http://mad-gooze.github.io/YoutubeDelayed.js

About

Youtube Delayed Loader - a small script allows you to load youtube player on page only when the user wants to watch the video. This is very helpful when your page contains a lot of Youtube videos which slow down its load.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published