Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 573 Bytes

README.md

File metadata and controls

13 lines (10 loc) · 573 Bytes

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