Do you want to lazy load Gravatars on your WordPress site? Gravatars cause extra http requests which slows down your site’s page load speed particularly on articles with a lot of comments. In this article, we will show you how to lazy load Gravatars in WordPress comments and improve your website speed.
What is a Gravatar?
Gravatar are user profile images used by WordPress. These images are used in WordPress comments and author bio sections.
A user needs to create an account on Gravatar website and submit a profile photo for their email address.
Each time they use that particular email address, WordPress powered websites can automatically fetch their profile photo from the Gravatar website.
To learn more, see our guide on what is a Gravatar and why you should start using it.
Gravatars are great, but they can also affect your site’s page load time.
Each user gravatar adds a HTTP request to your page load. This increases the page wait time for your website and affects user experience.
If you have a website that receives a lot of comments, then it is worth considering lazy loading the gravatar images. Let’s take a look at how to easily lazy load gravatars in WordPress comments.
Lazy Load Gravatrs in WordPress Comments
Upon activation, you need to visit Settings » BJ Lazy Load page to configure plugin settings.
The plugin allows you to lazy load content, widgets, images, post thumbnails, iframes, and gravatars. You need to select the items you want to lazy load on your website.
Don’t forget to click on the save settings button to store your changes.
You can now visit any article with comments on your website. As you scroll down, you will notice lazy loading of gravatar images.
We hope this article helped you lazy load gravatars in WordPress comments. You may also want to see our ultimate guide on how to speed up WordPress and boost performance.
Rojenx is a leading concept artist who work appears in games and publications
Check out his personal gallery here