A major drawback to using Elementor is that the background images used for sections and columns are all loaded when the page loads. Using a plugin like WP Rocket or BJ Lazy Load will not solve this issue. This plugin fixes that.
- support has been added for the following Elementor Pro elements: Flip Box and Slider – thanks for the idea @dollhauss
- WP Dashboard > Plugins > Add New
- Search for Lazy Load Elementor Background Images
- Install and activate.
- You must be using the Elementor page builder. This plugin doesn’t have any effect whatsoever on pages not built with Elementor.
- WayPoints JS library – this library is currently bundled and loading on Elementor pages. Future versions of this plugin may include the WayPoints JS library so it will not be required.
- How do I know if this is working?
If your pages start loading faster, it’s probably working. That’s the non-technical version.
If you’re a developer and know how to use Google Chome Developer Console, read on …
- If you’re using a caching plugin, clear it.
- If you’re using a CDN such as Cloudflare, clear the CDN cache.
- Open your site in an incognito tab in Google Chrome.
- Open the Developer Console.
- Go to the Network tab.
- Tick the option to disable cache.
- Click the
- Reload the page.
- As you scroll down, ensure that the background images of sections and columns load on the fly as you approach them.
- Why isn’t this plugin doing anything?
If the plugin isn’t lazy-loading your background images, then one of the following must be true:
- the Lazy Load Elementor Background Images plugin isn’t active – activate it.
- Elementor isn’t installed/activated – install and activate it.
- the page you’re checking is not an Elementor page – this plugin ONLY works on section/column backgrounds designed with Elementor.
- the section/column with a background is also animated (motion effects) … I can’t lazyload them because they are hidden until they are scrolled into view.
- Waypoints JS library is not loaded … we can look at this together and figure out why.
If none of the issues above applied to your situation, just leave the plugin activated, open a support ticket (support link forthcoming) and we’ll troubleshoot it. DO NOT leave a crappy review on the plugin, please. I’m providing it for free and support it for free. I will do my best to make it work in all situations but there are no guarantees.
- Where are the settings?
There is no admin screen added by this plugin. You just activate it and it works.
- This plugin killed my site!
I believe it. It’s a very new plugin that hasn’t been widely tested. Rather than give it a crappy rating, please use the support forum so we can figure out what happened. (I am waiting for WordPress.org to approve my plugin so I can link to the support forum)
In the meantime, to get your site back, get into your site’s files via cPanel File Manager through your hosting platform or via FTP, go into the
wp-content/plugins/folder, and delete the
lazy-load-background-images-for-elementorfolder – that should immediately bring your site back to life.
On newer versions of WordPress, you may also use the recovery link that gets emailed to you when your site has a critical error.
- I’m not seeing huge performance increases …
- Remember – this plugin is not a lazy loader for all images on the page. It only affects background images applied to sections or columns. Use a plugin like WP Rocket to apply lazy-loading to all other image resources.
- Background images which are visible (or close to visible) when the page loads are loaded immediately.
- Your background images may not really be impacting the load time on your site (In other words, maybe your background images are highly optimized and small in size). A 2K JPG lazy-loaded is not going to improve your page speed much. A 500K JPG background will.
- Your web server may simply be slow. Or there are other areas of optimization that need to be addressed. The best article I’ve found for tuning up everything on the site is Kinsta’s How to Speed Up Your WordPress Website (Ultimate 2020 Guide).
Bijdragers & ontwikkelaars
“Lazy Load Elementor Background Images” is open source software. De volgende personen hebben bijgedragen aan deze plugin.Bijdragers
Vertaal “Lazy Load Elementor Background Images” naar jouw taal.
Interesse in ontwikkeling?
Bekijk de code, haal de SVN repository op, of abonneer je op het ontwikkellog via RSS.
- fixed support for Swiper (affects Elementor Pro widget Slider) which was not loading all backgrounds in view when the Slider widget is in ‘infinite loop’ mode. thanks for reporting it @sermalefico
- removed console.log call in JS as it was only for debugging purposes
- added support for Elementor Pro widget Slider – thanks for the suggestion @dollhauss
- added support for Elementor Pro widget Flip Box – thanks for the suggestion @dollhauss
- simplified JS code for readability and performance
- initial release