This Jekill/Octopress plugin improves the responsiveness on page that embed many Vimeo iframe by delaying the iframe creation until the user clicks on the video.
It's based in the great jekyll-youtube-lazyloading by erossignon (https://github.com/erossignon/jekyll-youtube-lazyloading)
Add a {% vimeo <videoid> %}
in your markdown page
It's optional, but You can specify a width & height (in pixels) for the video:
{% vimeo <videoid> [width] [height] %}
And an alternative text for the link (optional too):
{% vimeo <videoid> [width] [height] [Alternative text for the link] %}
- Add
vimeo.rb
to yourplugin
folder - Copy
_rve.sccs
to/sass/custom
- Copy
video-play-button.png
andvideo-play-button-hover.png
to/source/images
- Add
@import "custom/rve"
to/sass/screen.scss
Thanks to erossignon for the original plugin for Youtube.