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

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
 
 
 
 
 
 
 
 
 
 

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