youtube-iframe
Wrapper for dynamically loading the YouTube iframe api script
npm install youtube-iframe
Can be used with browserify or global window.YouTubeIframeLoader
.
var YouTubeIframeLoader = ; YouTubeIframeLoader; YouTubeIframeLoader;
Changelog
1.0.3
- Typescript support (#3)
1.0.2
- Always call the callback asynchronously (#2)
- Fixed a bug with infinite recursion when nesting load() calls
1.0.1
- Always use https instead of the protocol-relative URL (#1)