Title: Lazy Loading Thumbnails
Last modified: July 22, 2020

---

# Lazy Loading Thumbnails

 *  [_Jo](https://wordpress.org/support/users/_jo/)
 * (@_jo)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/lazy-loading-thumbnails/)
 * Hi Ajay,
 * first of all, thank you, I’m very happy with your plugin!
 * Maybe you can give me a hint on where to start with my current “problem”?
 * I’m tweaking my blog – lazy load all the things!
    Loading times are good, I’m
   using BJ Lazy Load which is another good plugin.
 * Last content that isn’t loaded on demand/scroll are the related post thumbnails.
   
   I already checked the plugin files and saw the img tag in the media.php (crp_get_image_html?),
   but if not necessary, I would like to prevent changing your files. Is there another
   way to do this?
 * this is the image structure I need:
 * `<img class="lazy lazy-loaded" src="placeholder.jpg" data-lazy-type="image" data-
   lazy-src="https://www.path.to.my.image/wp-content/uploads/2018/07/image.jpg" 
   alt="alternativetext" width="600" height="382" />`
 * Any hint/idea what to do?
 * Thank you very much!
    Jo
    -  This topic was modified 5 years, 10 months ago by [_Jo](https://wordpress.org/support/users/_jo/).
    -  This topic was modified 5 years, 10 months ago by [_Jo](https://wordpress.org/support/users/_jo/).

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/lazy-loading-thumbnails/#post-13168861)
 * Do you need to add additional classes, if so you can filter `crp_thumb_class`
   with a function to add additional classes.
 * [https://github.com/WebberZone/contextual-related-posts/blob/v2.9.3/includes/media.php#L221](https://github.com/WebberZone/contextual-related-posts/blob/v2.9.3/includes/media.php#L221)
 * If you need to add the data-lazy-type, you can do that by filtering `crp_get_image_attributes`
 * [https://github.com/WebberZone/contextual-related-posts/blob/v2.9.3/includes/media.php#L367](https://github.com/WebberZone/contextual-related-posts/blob/v2.9.3/includes/media.php#L367)
 * Let me know if this helps.

Viewing 1 replies (of 1 total)

The topic ‘Lazy Loading Thumbnails’ is closed to new replies.

 * ![](https://ps.w.org/contextual-related-posts/assets/icon-256x256.png?rev=2985705)
 * [Contextual Related Posts](https://wordpress.org/plugins/contextual-related-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contextual-related-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contextual-related-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/contextual-related-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contextual-related-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contextual-related-posts/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Ajay](https://wordpress.org/support/users/ajay/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/lazy-loading-thumbnails/#post-13168861)
 * Status: not resolved