Skip to content
Bootstrap Modal & YouTube Video
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
css
js
LICENSE
README.md
index.html

README.md

YTModal

Bootstrap Modal & YouTube Video

Bootstrap Modal & YouTube Video Example


Si necesitas introducir en una misma página varios vídeos de YouTube y no quieres que eso penalice la carga de la misma, puedes cargarlos con este método mediante el cual primero se carga solo las imágenes default de cada vídeo y posteriormente se carga el vídeo en un modal de bootstrap mediante la iframe_api de YouTube.


If you need to enter on the same page several YouTube videos and do not want that to penalize the loading time of it, you can load them with this method, which first loads only the default images for each video and then load the video in a bootstrap modal using the iframe_api provided by YouTube.


References and code base:

Alexis Ulrich
http://www.sitepoint.com/faster-youtube-embeds-javascript/

Jesse Schoberg
http://schoberg.net/2015/08/fast-agile-youtube-embed-responsive-iframe-load-delay-with-jquery/

YouTube	
https://developers.google.com/youtube/iframe_api_reference

You can’t perform that action at this time.