Lazyframe
+Dependency-free library for lazyloading iframes
+ +What does it do? It turns blue.
+Lazyframe creates a responsive placeholder for embedded content and only + requests it when the user + interacts with + it. This decreases the page load and idle time. Lazyframe comes with brand-like themes for YouTube, Vimeo and + Vine.
+Why?
+Because the JavaScript loaded from the external providers is big and + takes much time to load. This + slows down your site, even if your visitors don't want to see your beautiful videos. +
+For example here are the number of requests and filesizes of some well-known services.
+-
+
+
- + YouTube – 11 requests ≈ 580kb + +
- + Google maps – 52 requests ≈ 580kb + +
- + Vimeo – 8 requests ≈ 145kb + +
Examples
+ +Embed YouTube video with thumbnail and title from + API +
+This demo only works at https://vb.github.io/lazyframe/, so we have to wait, until this is merged into + the + master repo
+Embed YouTube video with custom preview image + and + custom title +
+ +Embed Vimeo video with thumbnail and title from + API +
+Embed Vimeo video with custom thumbnail and + title +
+Custom Iframe +
+Google maps iframe with custom thumbnail and + title that gets executed when in view +
+This demo only works at https://vb.github.io/lazyframe/, so we + have + to wait, until this is merged into the + master repo +
+Lazyframe is small, beautiful and easy to + apply. + My website loads now much faster. Thank you very much for creating this impressive script!” +
+Random guy
+on the internet
+Need Help? Found a bug?
+File an issue on GitHub
+ https://github.com/vb/lazyframe/issues +