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