How to Lazyload Background Images in WordPress

Published on August 3, 2022 by Sebastian Moran in MainWP Blog under Tips & Tricks
Heads up: This page may include affiliate links. Read the full disclaimer.
Lazy Loading Background Images WordPress

A fast loading website is an integral part of building websites nowadays as it may help site visitors stay and explore more. Lazy loading images is one of the techniques which may result in better performance.

One of the easy plugins to enable lazyload of background images is called Lazyload Background Images.

1. Lazyload Background Images

Lazy Load Background Images Plugin

In the plugin settings, you can also add the selectors for elements that contain background images. By default, the plugin will lazyload background images that are contained in inline CSS.

To enable background images to lazyload, navigate to wp-admin, and get into “Lazyload Backgrounds”

Lazy Load Background Images Plugin

2. Lazy Loader

Another plugin option for lazyloading of background images is to use the Lazy Loader plugin.

Lazy Loader WordPress Plugin

After installing the plugin, it will add a lazy load option into Settings -> Media settings as below:

Lazy Loader WordPress Plugin

If you are using the WP Rocket plugin for full page caching and minification, it will lazyload background images by default that are applied to inline HTML. If the WP Rocket plugin causes issues for specific images, you can disable it from being lazyloaded.

Being able to lazyload background images will improve the site experience for visitors.

Useful Links

Share

Manage Unlimited WordPress Sites from One Dashboard!

  • Privacy-first, Open Source, Self-hosted
  • Easy Client Management
  • 15+ & 30 + Premium Add-ons
  • Bulk Plugins & Themes Management
Get Pro Now

Categories

Recent Posts

Search MainWP.com

[searchwp_form id="1"]