Lazy loading makes your site load faster and saves bandwidth.
This plugin replaces all your post images, post thumbnails, gravatar images and content iframes with a placeholder and loads the content as it gets close to enter the browser window when the visitor scrolls the page. Also works with text widgets.
Since it works with iframes, it also covers embedded videoes from YouTube, Vimeo etc.
You can also lazy load other images and iframes in your theme, by using a simple filter.
Compatible with the RICG Responsive Images plugin for responsive images.
Please let me know if you have any issues. Fastest way to get a response is by Twitter: https://twitter.com/bjornjohansen
Development happens at GitHub. Pull requests are very welcome.
If you have images output in custom templates or want to lazy load other images in your theme, you may pass the HTML through a filter:
<?php $img_html = '<img src="myimage.jpg" alt="">'; $img_html = apply_filters( 'bj_lazy_load_html', $img_html ); echo $img_html; ?>
Note for developers: The filter has a priority of 10.
No worries. They get the original element in a noscript element. No Lazy Loading for them, though.
Lazy loading works just fine. The images will still load from your CDN.
Check your HTML source or see the magic at work in Web Inspector, FireBug or similar.
Lazy loading for images and iframes makes your site load faster and saves bandwidth. Uses no external JS libraries and degrades gracefully for non-js …View Cart
Search & Replace data in your database with WordPress admin, replace do...
Flexible button creator allowing you to stick floating buttons to the side ...
YITH WooCommerce Catalog Mode, a plugin for disabling sales in your e-comme...
Remove meta author and date information from posts and pages. Hide from Hum...