How To Defer Offscreen Images In WordPress

One common recommendation seen on page speed testers like Google’s PageSpeed Insights is to defer offscreen images. In this article, we’ll delve into what this recommendation means and how you can implement it on your WordPress site using FastPixel.

What do defer offscreen images mean

When a user visits a webpage, all the images on that page are typically loaded at once. This includes images that might not be immediately visible to the user, such as those located below the fold or offscreen. Loading these offscreen images alongside the visible content can significantly increase the initial page load time, leading to a slower user experience.

Deferred offscreen image loading is a technique that delays the loading of offscreen images until they are about to come into view. This means that images below the fold or offscreen are only loaded when the user scrolls down and approaches them, reducing the initial load time and improving overall page speed.

Why defer offscreen images 

Here are the main reasons why deferring offscreen images can be beneficial:

  1. Faster initial page load: You allow the critical content of the webpage to load first, which can improve the perceived loading speed.
  2. Reduced bandwidth usage: Offscreen images aren’t loaded until they are about to come into view, which means that users don’t waste bandwidth loading images they may never see if they don’t scroll down the page.
  3. Improved performance on mobile devices: Mobile devices often have slower internet connections and limited resources compared to desktop computers. Deferring offscreen images helps optimize performance for these devices by reducing unnecessary image loading.
  4. Optimized server resources: With fewer resources required to process image requests, your server can allocate resources more efficiently, leading to improved overall performance and stability.
  5. Better user experience: Help minimize distractions and streamline the browsing experience by ensuring that users can access content quickly and smoothly.
  6. Improved SEO performance: You increase your chances of ranking higher in search engine results and attracting more organic traffic.

How to identify the offscreen images to defer

One simple way to identify offscreen images is by using tools like Google PageSpeed Insights. This tool analyzes web pages and provides suggestions for improving performance, including identifying offscreen images.

Access Google PageSpeed Insights by visiting the website and entering your website’s URL into the provided field.

After analyzing your website, you will get a report highlighting various performance metrics and areas for improvement.

Scroll down to the “Diagnostics” section of the report, where PageSpeed Insights will list specific recommendations for optimizing your website.

Look for recommendations related to offscreen images. PageSpeed Insights may suggest deferring offscreen images or optimizing their loading to improve overall performance.

How to defer offscreen images in WordPress

Now that you’ve pinpointed the images for deferral, it’s time to roll up your sleeves and make it happen.

Remember, the golden rule here is to prioritize deferring the images that are below the fold.

How to manually defer (lazy load) offscreen images

You can manually defer offscreen images through lazy loading by using the attribute <img loading=”lazy”>.

Here’s an example:

<img src=”example.jpg” loading=”lazy”>

After adding this attribute, the image will be lazy-loaded at a browser level. The loading attribute is supported by various browsers, including Chrome, Firefox, Edge, Safari, and so on.

How to defer (lazy load) offscreen images using a plugin

Implementing deferred offscreen image loading in WordPress can seem daunting, especially for those without coding experience.

However, thanks to plugins like FastPixel, the process becomes much simpler.

All you have to do is download and install FastPixel on your WordPress site to have all images lazy-loaded by default, besides all the other features it comes up with to boost the performance of your site.

After adding FastPixel to your toolset, make sure to regularly test your website’s performance using tools like PageSpeed Insights or GTmetrix. Monitor load times and other metrics to ensure that your site is consistently delivering a fast and smooth user experience.


One effective technique to enhance speed and performance is by deferring offscreen images. By delaying the loading of images that are not immediately visible on the user’s screen, you can prioritize the display of critical content, leading to faster page load times and smoother browsing experiences.

With tools like FastPixel, the process becomes straightforward, offering WordPress users a hassle-free solution to optimize their site’s performance.

Give FastPixel a try for free

Take the first step towards a faster website today and give FastPixel a try!

Enjoyed reading? Spread the word!
Andrei Alba
Andrei Alba

Andrei Alba is a WordPress speed optimization specialist and wordsmith here at FastPixel. He enjoys helping people understand how WordPress works through his easily digestible materials.

Articles: 18