Linux 软件免费装
Banner图

Smart LazyLoad – Lazy Load Images, Videos and Iframes

开发者 jumedeenkhan
mozedia
更新时间 2026年9月7日 21:07
捐献地址: 去捐款
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

performance lazyload lazy load lazy loading lazy load images

下载

1.3.4 1.5 2.0.0 2.9.0 1.4.0 1.4.1 1.4.2 2.9.4 2.9.5 3.0.0

详情介绍:

Smart LazyLoad is a free, simple, and lightweight lazy loading plugin. Lazy load WordPress images, videos, and iframes to improve page speed, website performance, and Core Web Vitals scores. Most lazy load plugins stop at optimize images. Smart LazyLoad also defers responsive <picture> sources, inline background images, avatars, smilies, HTML5 <video>, and iframes such as YouTube and Vimeo. This plugin also includes support for avatars, emojis, native video, native browser lazy loading, and thumbnail placeholders, as well as the ability to convert YouTube videos. There is nothing to configure to get started — images are lazy loaded the moment you activate it. 🚀 You get two layers of control: The rest lives on one settings screen: choose what to lazy load, tune performance, decide how placeholders look, and exclude anything that shouldn't be touched. 📦 What gets lazy loaded? 🎛️ Two layers of on/off control ⚡ Performance tuning 🎨 Appearance while content loads 🧩 Compatibility and control 🛠️ Built the right way

安装:

From your WordPress dashboard
  1. Navigate to Plugins → Add New Plugin
  2. Search for Smart LazyLoad
  3. Click Install Now, then Activate
  4. Go to Settings → LazyLoad to review the defaults — lazy loading for images is already on out of the box
Manual upload
  1. Download the plugin's ZIP file
  2. Upload the lazy-load-for-images folder to /wp-content/plugins/
  3. Activate the plugin from Plugins → Installed Plugins
  4. Visit Settings → LazyLoad to adjust anything, or leave the defaults as they are
No further setup is required — lazy loading starts working on the frontend as soon as the plugin is active.

屏幕截图:

  • Main settings to enable lazy loading and choose what to optimize.
  • Performance settings for Core Web Vitals and loading behavior.
  • Appearance settings for image previews, colors, and the fade-in.
  • Advanced settings for exclusions and compatibility options.
  • Per-post override settings in the WordPress editor.

升级注意事项:

3.0.0 Major update with improved lazy loading, WebP YouTube thumbnails, better exclusions, AJAX support, and numerous fixes.

常见问题:

What exactly does Smart LazyLoad defer?

Images in post and page content, featured images, widget images, comments, avatars, and smilies, plus <picture> sources, inline background images, iframes (YouTube, Vimeo, and others), and native <video> elements. Turn on Full-Page Lazy Loading and anything your theme's templates output directly is covered too. Each content type has its own on/off toggle, so you decide what applies.

How is this different from a plugin that only lazy loads images?

Most lazy load plugins stop at <img> tags. Smart LazyLoad also handles background images, <picture> responsive sources, videos, and iframes, and adds a second layer of control on top of the usual site-wide switch: a per-post override that lets a single page behave differently from the rest of the site.

Does this work with AMP pages?

Yes, safely: on any page served through the AMP plugin, Smart LazyLoad detects the AMP endpoint and skips lazy loading entirely — including its scripts and styles — since AMP's markup rules don't allow the attributes lazy loading needs. Non-AMP pages are unaffected.

How do I make one specific post behave differently from the rest of the site?

Open that post or page in the editor and find the Smart LazyLoad panel in the sidebar. Set the Lazy Load dropdown to Enable to force lazy loading on for that post only, or Disable to force it off — either way, every other post keeps following the site-wide Master Switch untouched.

If I turn the Master Switch off, do I lose my other settings?

No. Every other option on the settings page is dimmed and can't be edited while the Master Switch is off, but its saved value is untouched. Turn the Master Switch back on and your previous configuration is exactly as you left it.

How do I exclude one image, video, or iframe from being lazy loaded?

Add any of these to the element: no-lazyload, skip-lazy, data-no-lazyload, data-no-lazy, or data-skip-lazy. An element already marked loading="eager" or fetchpriority="high" is left alone too, so the hints you use for your LCP image keep working. For your own CSS classes, list them under Settings → LazyLoad → Custom Exclude Selectors — one per line, or separated by commas. The leading dot is optional, so .site-logo and site-logo both work. A class only counts when it matches in full, so .hero never accidentally excludes hero-thumbnail.

Can I disable lazy loading with code instead of the settings page?

Yes. add_filter( 'smart_lazyload_enabled', '__return_false' ); Or conditionally, for example only on single posts: add_action( 'wp', function () { if ( is_single() ) { add_filter( 'smart_lazyload_enabled', '__return_false' ); } } );

Does it support background images?

Yes, in two ways. Automatically, for any element carrying an inline background: ` ` Or manually, by writing the plugin's own markup yourself: ` Use a plain URL indata-bg— nourl(...)` wrapper and no quotes. Either way the background is restored automatically for visitors with JavaScript turned off. Only a background made of one plain url() is deferred. Gradients, image-set(), and multi-layer backgrounds are left exactly as you wrote them, so a value that can't be rebuilt safely is never taken apart.

Does it support responsive <picture> markup?

Yes. Every <source> inside a <picture> element has its srcset/sizes deferred in sync with the fallback <img>. The browser still decides which source to use based on format and viewport — Smart LazyLoad only changes when the chosen source loads.

Will lazy loading make my layout jump around?

No. A deferred image is held open by a placeholder cut to that image's exact width and height, so the space is reserved from the first paint and nothing moves when the real image arrives.

Which method should I use: Full-Page or content only?

Both are safe; they differ in reach. Leave Full-Page Lazy Loading off and the plugin only touches post content, widgets, comments, and avatars — the lightest possible option, and enough for most sites. Turn it on and the whole response is scanned, so images your theme prints directly in its templates (sliders, headers, footers) are covered too. Only one of the two runs at a time, so nothing is ever processed twice.

What is the low-quality image placeholder (LQIP)?

Instead of an empty box, Smart LazyLoad shows a tiny blurred preview of the real image while the full version loads. Previews are built in the background, never during a visitor's page load, and cached from then on. Choose the source size under Settings → LazyLoad → Placeholder Source Size. On a large existing media library you can build every preview up front from the command line: wp smart-lazyload generate-lqip Add --force to rebuild previews that already exist, or --limit=100 to work through the library in batches. To remove every stored preview: wp smart-lazyload clear-lqip

Can an image ever get stuck invisible while fading in?

No. The fade only ever runs on an element that has already arrived, so an image that fails to load, or a visitor whose JavaScript never runs, simply sees it at full opacity.

Can I use my own placeholder image instead of the built-in SVG?

Yes. add_filter( 'smart_lazyload_svg_placeholder', function () { return 'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1 1"></svg>'; } ); Deferred iframes use a separate placeholder (default about:blank), which you can change with: add_filter( 'smart_lazyload_placeholder', function () { return 'about:blank'; } );

Will this conflict with my caching, CDN, or other performance plugins?

No. Smart LazyLoad only changes the HTML markup for images, videos, and iframes on the fly; it doesn't touch how pages are cached or served, so it works alongside typical caching and CDN setups.

Is Smart LazyLoad SEO-friendly?

Yes. Deferred content is always wrapped with a working <noscript> fallback, native browser lazy loading is supported directly, and the first image on the page is skipped by default so it doesn't hurt your Largest Contentful Paint score.

Lazy loading doesn't seem to be working. What should I check?

  • Confirm the Master Switch is on, and that the specific post isn't set to Disable in its Lazy Load panel
  • Clear any page cache, CDN cache, or browser cache
  • Check whether "Disable for Logged-in Users" is on and you're viewing the page while logged in
  • Temporarily disable other lazy load plugins to rule out a conflict
  • Make sure the element doesn't carry one of the exclusion classes/attributes
  • View the actual frontend page, not a page-builder editing screen or preview

更新日志:

3.0.0 2.9.5 2.9.4 2.9.3 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.1 2.4.0 2.3.0 2.2.0 2.1.0 2.0.2 2.0.1 2.0.0