How to Easily Lazy Load Images in WordPress (2 Ways)
Do you want to learn how to lazy load images in WordPress? Lazy loading allows your website to only load images when a user scrolls down to a specific image, which reduces the website load time and improves website performance. Many popular image-heavy sites use lazy loading to boost website speed and performance. In this article, we will show you how to easily lazy load images in WordPress, step by step. Why Lazy Load Images in WordPress? Lazy loading WordPress images can speed up your website and offer a better user experience. No one likes slow websites. In fact, a performance study found that a 1-second delay in page load time leads to 7% fewer conversions, 11% fewer pageviews, and a 16% decrease in customer satisfaction. Search engines like Google don’t like slow-loading websites, either. This is why faster sites rank higher in the search results. Images take the most time to load on your website compared...
Do you want to learn how to lazy load images in WordPress?Lazy loading allows your website to only load images when a user scrolls down to a specific image, which reduces the website load time and improves website performance. Many popular image-heavy sites use lazy loading to boost website speed and performance.In this article, we will show you how to easily lazy load images in WordPress, step by step.
Why Lazy Load Images in WordPress?
Lazy loading WordPress images can speed up your website and offer a better user experience.No one likes slow websites. In fact, a performance study found that a 1-second delay in page load time leads to 7% fewer conversions, 11% fewer pageviews, and a 16% decrease in customer satisfaction.Search engines like Google don’t like slow-loading websites, either. This is why faster sites rank higher in the search results.Images take the most time to load on your website compared to other web elements. If you add a lot of images to your articles, then each image increases your page load time.One way to handle this situation is to use a CDN service like BunnyCDN. A CDN will let users download images from a web server closest to them and reduce website loading speeds.However, your images will still be loaded and affect the overall page load time. To get past this issue, you can delay image loading by implementing lazy load on your website.How does lazy loading for images work?Instead of loading all your images at once, lazy loading downloads only the images visible on the user’s screen. It replaces all other images with a placeholder image or blank space.As a user scrolls down the page, your website loads images that are visible in the browser’s viewing area.Lazy loading can be very beneficial to your WordPress blog:
It reduces the initial web page loading time so that users will see your site faster.
It conserves bandwidth by only delivering images that are viewed, which can save you money on WordPress hosting costs.
The release of WordPress 5.5 added lazy loading as a default feature.However, if you want to customize how your images lazy load and also lazy load background images, then you will need to use a WordPress plugin.Let’s take a look at how to lazy load images in WordPress using two different plugins. You can use the quick links below to jump straight to the method you want to use:
Lazy Load Images in WordPress With WP Rocket (Recommended)
Lazy Load Images in WordPress With Optimole (Free)
Bonus Tips to Optimize Your WordPress Images
Method 1: Lazy Load Images in WordPress With WP Rocket
We recommend using the WP Rocket plugin to lazy load images in WordPress. It’s the best WordPress caching plugin on the market that lets you easily turn on image lazy loading.Aside from that, it’s a very powerful plugin that helps you optimize your website speed without knowing complex technical terms or configuring expert settings.Right out of the box, all of their default recommended caching settings will greatly speed up your WordPress website.The first thing you will need to do is install and activate the WP Rocket plugin. For more details, you can see our guide on how to install a WordPress plugin.To enable image lazy loading, all you have to do is check a few boxes. You can even enable lazy loading for videos, which will improve your website speed even more.All you need to do is go to Settings » WP Rocket in your WordPress dashboard and click on the ‘Media’ tab. Then, you can scroll to the ‘LazyLoad’ section and check the boxes next to ‘Enable for images’ and ‘Enable for iframes and videos’.For more details, see our guide on how to properly install and set up WP Rocket in WordPress.Note: If you are using Siteground as your WordPress hosting provider, then you can use the free SiteGround Optimizer plugin that has similar lazy loading features.
Method 2: Lazy Load Images in WordPress With Optimole
This method uses the free Optimole plugin. It’s one of the best WordPress image compression plugins that lets you easily enable image lazy loading.If you get over 5,000 visitors per month, then you will need the premium version of Optimole.First, you need to install and activate the Optimole plugin. For more details, see our step-by-step guide on how to install a WordPress plugin.Upon activation, you will see a screen asking you to sign up for an API key. You can also find this screen by navigating to Optimole in the admin menu.You’ll need to make sure that the email address listed is correct and then click the ‘Create & connect your account’ b***on. Alternatively, if you are an existing user, then just click the ‘I already have an API key’ b***on.You may need to wait for a few seconds while the plugin connects to Optimole. After that, the plugin will automatically start to optimize your images so that your visitors will now see the best images for their devices.While that is happening, you can click on the ‘Settings’ tab to configure lazy load.Here, you need to make sure the ‘Scale images and & Lazy load’ setting is enabled. This will generate images based on your visitor’s screen size and improve loading speeds.Next, click on the ‘Advanced’ menu option and select ‘Lazyload’. On this screen, there are a few different settings that let you customize how your images will lazy load.First, you can adjust the ‘Exclude first number of images from lazyload’ setting. This will stop images at the top of your posts or pages from lazy loading, so images above the fold will always appear.You can set this to 0 if you want every image to lazy load.There are a few other advanced lazy load settings in Optimole that you can check. These settings are enabled by default.The first is the ‘Scale Images’ setting. This will scale images to the visitor’s screen size and make your page load faster.After that, you will see the ‘Enable lazyload for background images’ setting. This will lazy load your background images, which may be the largest images on your website.Another setting is lazy loading embedded videos and iframes. If you have a lot of embedded video content, then you will want to leave this setting on. It will load a placeholder image in place of the video. When the placeholder is clicked, the full video will load.You can continue to customize these settings and see what works best for your website and your images.Before you exit the plugin settings, make sure to click the ‘Save changes’ b***on at the bottom of the page.
Bonus Tips to Optimize Your WordPress Images
Although lazy loading will help to improve website loading speed, there are a few other ways to optimize your WordPress images for the best performance.For example, we recommend compressing your images before uploading them to your website using a tool like TinyPNG or JPEGmini. Alternatively, you can use an automated image compression plugin such as Optimole or EWWW Image Optimizer.It’s also important to choose the right WordPress image size and file format for your images. JPEGs are best for photos or images with many colors, PNGs are suitable for simple or transparent images, and GIFs are only for animated images.We hope this article helped you learn how to lazy load images in WordPress. You may also want to see our tutorial on how to easily optimize images for the web without losing quality and our expert picks of the best web design software.If you liked this article, then please subscribe to our YouTube Channel for WordPress video tutorials. You can also find us on Twitter and Facebook.The post How to Easily Lazy Load Images in WordPress (2 Ways) first appeared on WPBeginner.
I gave up on Obsidian twice before I found the setup that finally stuck
Not every app you try works the first time. I have hundreds installed and often find myself stumbling onto an old one that I'd written off too soon, only to realize it's actually fantastic. Sometimes all it takes is a different setup, or perhaps different life circumstances that now require...
Not every app you try works the first time. I have hundreds installed and often find myself stumbling onto an old one that I'd written off too soon, only to realize it's actually fantastic. Sometimes all it takes is a different setup, or perhaps different life circumstances that now require a curated stack. Notes apps fall into this category too, especially Obsidian.
Job Vendrig Netherlands
Published by: aplhsindia.in
I turned my old Android phone into a distraction-free writing device
Whenever I feel I’m in the right headspace to start working on my essays and writing scripts, I’m usually away from my PC. I needed something portable, accessible, and nice to type on. I dug through my drawers for inspiration and had a lightbulb moment when I found my old...
Whenever I feel I’m in the right headspace to start working on my essays and writing scripts, I’m usually away from my PC. I needed something portable, accessible, and nice to type on. I dug through my drawers for inspiration and had a lightbulb moment when I found my old phone, which I've tried to repurpose multiple times. None of those purposes have ever stuck long-term, but I think a distraction-free writing device might finally be the project that will make it thrive in its final years.
Amparo Martínez Spain
Published by: aplhsindia.in
Your motherboard has been running a second operating system this whole time, even when your PC is off
No, I'm not talking about a dual-boot setup that you forgot about. Your PC executes a ton of code even before your main OS starts loading. The very first thing that fires up when you press the power button is a secret security processor that has scary levels of access...
No, I'm not talking about a dual-boot setup that you forgot about. Your PC executes a ton of code even before your main OS starts loading. The very first thing that fires up when you press the power button is a secret security processor that has scary levels of access to your machine. And it stays on even if you've turned your PC off, as long as the PSU is connected to the wall.
Emily Brown Houston
Published by: aplhsindia.in
Windows 11 26H2 left the newest silicon behind, and it’s not a glitch — it’s by design
If you're a modern early adopter and just bought yourself a flagship co-product bus PC or laptop, you might be facing a sudden software reality. Microsoft drops the highly anticipated Windows 11 26H2 feature update, and your brand-new machine isn't even eligible to download it. Meanwhile, a five-year-old Intel 8300...
If you're a modern early adopter and just bought yourself a flagship co-product bus PC or laptop, you might be facing a sudden software reality. Microsoft drops the highly anticipated Windows 11 26H2 feature update, and your brand-new machine isn't even eligible to download it. Meanwhile, a five-year-old Intel 8300 5th Gen desktop is updating flawlessly.
Daniel Martinez Dallas
Published by: aplhsindia.in
Reddit’s AI is turning posts into podcasts and short videos
Reddit is trying out a new way for people to take in content on Reddit: by turning text posts into audio / video content. As part of an experiment, some posts are being adapted into videos that use AI voices to read the text of the main post and some...
Reddit is trying out a new way for people to take in content on Reddit: by turning text posts into audio / video content. As part of an experiment, some posts are being adapted into videos that use AI voices to read the text of the main post and some comments. The video highlights the text as it's read by the AI voice, and under the video, a note says that it's a "Real conversation voiced by AI."An old post in r/boardgames from eight years ago with 101 responses to a request for good road trip games that adults will like is an example of Reddit's AI at work. Instead of the usual text thread, it has the main question above a three-minute vi …Read the full story at The Verge.
Aria Wang New Zealand
Published by: aplhsindia.in
This compact Glorious mechanical keyboard is just $35
The discounted GMMK 3 doesn’t include the pictured wrist rest. | Image: Glorious Are you curious about custom mechanical keyboards, but don’t want to spend hundreds just to get started without being sure you’ll enjoy the hobby? You can grab the 65-percent Glorious GMMK 3 mechanical keyboard at Woot for...
The discounted GMMK 3 doesn’t include the pictured wrist rest. | Image: Glorious Are you curious about custom mechanical keyboards, but don’t want to spend hundreds just to get started without being sure you’ll enjoy the hobby? You can grab the 65-percent Glorious GMMK 3 mechanical keyboard at Woot for $34.99 (usually $139.99) by entering the coupon code WOOTGAMING at checkout, and first-time Woot customers will get an extra $5 off when using the same code.It’s a well-equipped keyboard out of the box, particularly for this price, and with its support for swappable switches, it’s a great platform for exploring keycap and switch options from different makers. It’s wired only, includes a full set of double-shot PBT keycaps for both Windows and macOS, and comes with linear Glorious Fox switches pre-installed.Glorious GMMK 3 65 PercentWhere to Buy: $139.99 $34.99 at Woot (with coupon code WOOTGAMING)As a 65 percent mechanical keyboard, the layout favors just the essentials to keep a compact footprint. That means dropping the row of dedicated function keys, and limiting the extra buttons to standard modifiers, plus a couple of spare buttons for page up and down. There are still arrow keys for gaming and OS navigation, and a customizable knob for volume or media controls. Under the hood, the aluminum plate and gasket system are modifiable and upgradeable, letting you dial in the typing experience and sound.
Emily Brown Houston
Published by: aplhsindia.in
ABC’s livestreamed news show is powered by trending topics
ABC News has officially introduced Searched, a livestreamed show that highlights stories people are discussing on social media and searching on the web, as reported earlier by Variety. Though the network just announced the show now, Searched began airing on the ABC News Live streaming channel in April, which appears...
ABC News has officially introduced Searched, a livestreamed show that highlights stories people are discussing on social media and searching on the web, as reported earlier by Variety. Though the network just announced the show now, Searched began airing on the ABC News Live streaming channel in April, which appears on both Disney Plus and Hulu.In the press release, ABC News says Searched "pulls real-time data from the top search engines and social media platforms to provide topical news for the audience." A recent episode of Searched highlighted an Illinois Powerball winner, NBA star Russell Westbrook's retirement, and Tropical Storm Lala …Read the full story at The Verge.
Emily Brown Houston
Published by: aplhsindia.in
My Raspberry Pi quietly replaced a year of subscriptions I spent hundreds of dollars on
I didn’t buy a Raspberry Pi to save money. I bought it because I wanted a small computer I could leave running, assign a few jobs to, and mostly forget about once everything was working. That’s more or less what happened, except the list of jobs kept growing, and I...
I didn’t buy a Raspberry Pi to save money. I bought it because I wanted a small computer I could leave running, assign a few jobs to, and mostly forget about once everything was working. That’s more or less what happened, except the list of jobs kept growing, and I eventually realized several of them had previously belonged to services I was paying for every month. By the time I added it all up, that little $80 board (at the time of purchase) had quietly become one of the few computers I own that was actually lowering my monthly expenses.
William Garcia Boston
Published by: aplhsindia.in
I changed one hidden TV setting, and the picture quality difference was immediate
I'll admit something embarrassing for someone who writes about display tech for a living. My last TV ran in its factory picture mode for the better part of a year. I'd taken weeks agonizing over panel types, my budget, and peak brightness numbers, and when it arrived, I plugged it...
I'll admit something embarrassing for someone who writes about display tech for a living. My last TV ran in its factory picture mode for the better part of a year. I'd taken weeks agonizing over panel types, my budget, and peak brightness numbers, and when it arrived, I plugged it in and ignored any of the settings. Now, to be fair, I use an Apple TV 4K with any display I watch movies on, and it's set to Dolby Vision mode, so I might not have noticed the TV was in a subpar setting.
Sophia Wilson Atlanta
Published by: aplhsindia.in
5 settings I change in Claude Cowork before I let it near my work
I've said this countless times before, and I'll say it yet again: Cowork is one of Claude's most underrated products. I use it constantly, and it's one of the features that's been keeping me from canceling my Claude subscription for good. If you haven't used Claude Cowork much, it's essentially...
I've said this countless times before, and I'll say it yet again: Cowork is one of Claude's most underrated products. I use it constantly, and it's one of the features that's been keeping me from canceling my Claude subscription for good. If you haven't used Claude Cowork much, it's essentially Claude Code, but geared toward non-technical users who don't want to deal with an intimidating terminal.
Olivia Miller Seattle
Published by: aplhsindia.in
The most useful port on your motherboard is the one you’ve never plugged anything into
Most ATX and micro-ATX motherboards come with more headers than the average builder has uses for. On average, even a really savvy builder will only ever use 6 to 7 headers out of the available 18–20, and that number goes down further if one doesn't care about RGB features or...
Most ATX and micro-ATX motherboards come with more headers than the average builder has uses for. On average, even a really savvy builder will only ever use 6 to 7 headers out of the available 18–20, and that number goes down further if one doesn't care about RGB features or goes for an air cooling solution instead of an AIO.
Sophia Wilson Atlanta
Published by: aplhsindia.in
You can finally stop juggling cables with this 11-port USB-C docking station that’s now $50 off
The Baseus Spacemate 11-port USB-C docking station is exactly what you need if you're looking to expand the capabilities of your laptop. Docking stations like these often come at a price, but the discount on Amazon is pretty steep right now, dropping from the original MSRP of $150, to a...
The Baseus Spacemate 11-port USB-C docking station is exactly what you need if you're looking to expand the capabilities of your laptop. Docking stations like these often come at a price, but the discount on Amazon is pretty steep right now, dropping from the original MSRP of $150, to a new low price of $100.