Wordpress

How To Add Custom Image In Jetpack Lazy Load

Recently I was reviewing lazy image loading functionality from one of the website. And the plugin which is there “BJ Lazy Load”, seems to be not updated from a very long time. So I thought of replacing it with Jetpack Lazy Load Image loading functionality.

Everyone wants to improve the webpage load speed and lazy load improves page load speed drastically. Once we implement it, images gets loaded once visitor starts scrolling.

Its always better to use the latest and updated plugins only. During WordPressSite Health” checkup, I found that “BJ Lazy Load” plugin is abandoned and not updated from quite some time. So I disabled that plugin and removed it. But I wanted to keep the functionality.

Activate Jetpack Lazy Loading for Images functionality

I had Jetpack active from quite some time, so I enabled Lazy Loading for image functionality from Jetpack -> Settings -> Performance -> Performance & speed section.

How to enable Lazy loading of image in Jetpack

So now, we will set the custom default image or placeholder image, which will be shown prior to original image loads.

How & where to add a temporary image or placeholder while original image loads ?

There is no user interface or a way to specify that default image. For this you need to modify your theme’s “functions.php” file. And add a code to show the default lazy load image for Jetpack using Jetpack’s filter “lazyload_images_placeholder_image“.

Its easy to specify temporary custom brand logo or image in Jetpack’s lazy image load functionality.

So open your “functions.php” file from Appearance -> Theme Editor -> functions.php

Jetpack lazy load image placeholder Code

Put following code at the end of you file

/*Add custom lazy load placeholder image or logo for jetpack*/
function my_lazyload_placeholder_image( $image ) {
    return 'http://absolute-image-url';
}
add_filter( 'lazyload_images_placeholder_image', 'my_lazyload_placeholder_image' );

In the above code, on line no. 3, replace your actual image url and save the file. Once its saved, then it will start showing above specified image as a placeholder image or placeholder logo through Jetpack’s Lazy loading image functionality.

Do let me know through comments, if you face any issues. Share it with your friends and colleagues, if you find it useful.

ProWebGuru

Mostly I write about technology related stuff on https://www.prowebguru.com Recently I have started making videos also. Mostly blog posts & videos are related to technology, programming and learning some new tips and tricks related to windows, wordpress, google app script, technical, programming, javascript, jquery and other coding related stuff. Youtube channel - https://www.youtube.com/user/prowebguru

Recent Posts

GPT 5.4: Powerful AI Breakthrough – 7 Game-Changing Features, Launch Date & Full Guide

GPT 5.4: The Next-Generation AI Model Transforming Reasoning, Coding, and Productivity Artificial Intelligence is evolving…

1 day ago

GPT‑5.3 Instant Explained: Faster, Smarter & Fewer Refusals

GPT-5.3 Instant is OpenAI's latest ChatGPT model update, prioritizing smoother conversations, fewer refusals, and higher…

2 days ago

Free Perplexity Pro for Airtel Customers: Unlock Advanced AI Assistance at No Cost!

Are you tired of scrolling endlessly through Google results trying to find clear, trustworthy answers?…

4 months ago

Unlocking Collaborative Coding with GitHub Copilot Spaces

In recent years, the process of software development has rapidly evolved—developers demand smarter tools and…

4 months ago

ChatGPT Go Now Free in India: Opening Doors to Advanced AI Capabilities

India has emerged as one of the fastest-growing and most significant markets in the global…

4 months ago

AgentKit by OpenAI: Redefining the Future of AI Agent Development

On October 6, 2025, OpenAI unveiled AgentKit, a unified suite of tools designed to help developers and…

5 months ago

This website uses cookies.