开发者 |
jumedeenkhan
mozedia |
---|---|
更新时间 | 2024年5月5日 12:45 |
捐献地址: | 去捐款 |
PHP版本: | 7.4 及以上 |
WordPress版本: | 6.5.2 |
版权: | GPLv3 or later |
版权网址: | 版权信息 |
Lazy Load for Images - Features & AdvantagesSimply install the plugin to enjoy a faster website. No options are available : you install it and the plugin takes care of everything.
- Load images only when required.
- Improve page loading speed.
- Reduce no. of HTTP requests.
- Lazy load also working on mobiles.
- Plugin used pure JS, no need of jQuery.
- Plugin used less than 2kb Javascript.
- Also support Gravatar.
- Also support Genesis Framework.
- SEO friendly (search engine optimized).
- Worked great with genesis framework.
- No need configurations (Just activate it, It's Done!)
- Of course, available on GitHub
Yes, All images that uploaded via you media library loaded with lazy load, with featured images. and this plugin also support Genesis Framework speciailly.
Simply add a data-no-lazy="1"
attribute tag in your specific image.
You can use no-lazyload class in images.
You can use this filter to exclude lazy load images.
add_filter( 'lazy_load_for_images', '__return_false' );
If you want stop lazyload on special pages, use it.
add_action( 'init', 'deactivate_lazy_load_for_images' ); function deactivate_lazy_load_for_images() { if ( is_single() ) { // apply filter here add_filter( 'lazy_load_for_images', '__return_false' ); } }
If lazy load not working for your theme, you can add a add_filter
in plugin class PHP files at hooks section, i.e. like this:
add_filter( 'post_thumbnail_html', array( __CLASS__, 'enable_lazy_load_for_images' ) );
By default, we use "data:image/gif;base64"
or SVG for placeholder image. You can change via Plugin Code.
Yes, Lazy Load Images plugin work very well with every cache plugin.