Beschrijving
Smart LazyLoad – Lazy Load Images, Videos and Iframes
Beschrijving
Smart LazyLoad is a fast, lightweight, and SEO-friendly lazy loading plugin for WordPress. It improves page speed and Core Web Vitals by loading images, iframes, videos, and background images only when they are about to enter the viewport.
Built with pure JavaScript, Smart Lazy Load does not rely on jQuery or other third-party libraries, keeping your site fast and bloat-free.
Unlike heavy optimization plugins, Smart LazyLoad focuses on one thing only: reducing unnecessary resource loading while maintaining compatibility, accessibility, and SEO best practices.
All features are optional — you can use the plugin with default settings or fine-tune it as needed.
Features
- Lazy load images in posts, pages, widgets, thumbnails, avatars, and comments
- Lazy load iframes and embedded videos
- Lazy load background images from inline styles and data attributes
- Optional YouTube iframe replacement with video thumbnails
- Intelligent first-image skipping for better LCP scores
- Supports both JavaScript-based and native browser lazy loading
- Inline plugin CSS and JavaScript (optional)
- Option to disable lazy loading for logged-in users
- Fully responsive and mobile-friendly
- SEO-friendly with noscript fallbacks
- Accessibility-aware
- Pure JavaScript (no jQuery dependency)
- Lightweight and performance-focused
- Open source and available on GitHub
Configuration
You can configure the plugin from:
Settings LazyLoad
Available options include:
- Enable or disable lazy loading
- Lazy load images, iframes, and videos
- Enable background image lazy loading
- Replace YouTube videos with thumbnails
- Adjust lazy load threshold
- Enable native browser lazy loading
- Inline plugin CSS and JavaScript
- Disable lazy loading for logged-in users
Need more help?
For detailed documentation, usage examples, available filters, and advanced configuration options for Smart LazyLoad are available.
See the Lazy Load Configuration Guide
Support
We are here to help. Feel free to open a new thread on the Support Forum.
Installatie
Automatic Installation
- Go to Plugins Add New in your WordPress admin
- Search for Smart LazyLoad
- Click Install Now, then Activate
Manual Installation
- Download the plugin ZIP file
- Upload it to
/wp-content/plugins/ - Activate the plugin from Plugins Installed Plugins
- Go to the plugin setting page and enable lazy load
- Now, lazy loading starts working automatically
FAQ
Does Smart LazyLoad lazy load all images?
Yes. It supports lazy loading for:
- Post and page content images
- Featured images
- Widget images
- Avatars and comments
- Background images
You can control what is lazy loaded from the settings page.
How can I exclude a specific image or iframe?
Add one of the following attributes or classes to the element:
no-lazyloadskip-lazydata-no-lazydata-skip-lazy
You can also use filters:
mozedia_lazyload_excluded_attributesmozedia_lazyload_iframe_excluded_patterns
Can I disable lazy loading on specific pages?
Yes. Use the following filter:
add_filter( 'do_mozedia_lazyload', '__return_false' );Or conditionally disable it:
add_action( 'wp', 'disable_mozedia_lazyload' ); function disable_mozedia_lazyload() { if ( is_single() ) { add_filter( 'do_mozedia_lazyload', '__return_false' ); } }Is Smart LazyLoad compatible with caching and optimization plugins?
Yes. It works well with most caching, CDN, and optimization plugins.
Is this plugin SEO-friendly?
Yes. Smart LazyLoad preserves original content using noscript fallbacks, supports native lazy loading, and allows skipping the first image for better LCP performance.
Does it support background images?
Yes. Smart LazyLoad can automatically lazy-load background images defined via the style attribute, such as:
<div style="background-image: url(image-slug.jpg);">You can also apply it manually yourself.
Simply add this special markup to the element on which you want to apply lazy loading:
<div class="mozedia-lazyload" data-bg="url(../img/image-slug.jpg)"></div>Can I use a custom placeholder image or GIF?
Yes. Change the SVG placeholder using this filter:
add_filter( 'mozedia_svg_placeholder', 'mozedia_replace_image_placeholder'); function mozedia_replace_image_placeholder() { return 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"></svg>'; }Lazy loaded iframes use a separate placeholder value (default:
about:blank).You can customize the iframe placeholder using the following filter:
add_filter( 'mozedia_lazyload_placeholder', function () { return 'about:blank'; });What should I do if the plugin is not working?
If Smart LazyLoad plugin is not working as expected, please check the following:
- Make sure the plugin is enabled
- Clear browser, plugin, and CDN caches
- Check if lazy loading is disabled for logged-in users
- Disable other lazy load plugins to avoid conflicts
- Ensure elements are not excluded using no-lazy attributes
- View the page on the frontend (not page builder editor)
If the issue persists, feel free to contact us
Beoordelingen
Bijdragers & ontwikkelaars
“Smart LazyLoad – Lazy Load Images, Videos and Iframes” is open source software. De volgende personen hebben bijgedragen aan deze plugin.
BijdragersVertaal “Smart LazyLoad – Lazy Load Images, Videos and Iframes” in je eigen taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
Changelog
2.0.0
- Complete code refactor
- Now also support iframe/video
- Background image lazy loading
- YouTube thumbnail mode
- Improved performance and stability
- Updated admin settings page
- WordPress 6.9 compatibility
1.5
- Tested with WordPress 6.5.2
- JavaScript and PHP improvements
- SVG placeholder support
1.4.x
- Genesis framework compatibility
- Improved hooks and filters
- Bug fixes and cleanup
1.0.0
- Initial release






