This Jekill/Octopress plugin improves the responsiveness on page that embed many youtube iframe by delaying the iframe creation until the user clicks on the video
add a {% youtube <videoid> %} in your markdown page
-
Add
gem 'yt'to yourGemfileand runBundle -
Add your Youtube API key to your
_config.ymlfile:youtube: api_key: <put your key here> -
Add
youtube.rbto yourpluginfolder -
Copy
_rve.sccsto/sass/custom -
Add
@import "custom/rve"to/sass/screen.scss
Thanks go to Anders M. Andersen for his blogpost about responsive embeds and to Portway Point for their Jekyll Youtube Liquid Template Tag Gist
Thanks to Fullscreen for yt, "The reliable YouTube API Ruby client".
