Title: Loading lazy is missing
Last modified: January 27, 2024

---

# Loading lazy is missing

 *  Resolved [drumstick](https://wordpress.org/support/users/drumstick/)
 * (@drumstick)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/loading-lazy-is-missing/)
 * Loading lazy on images is missing and I wonder where in the files can I add it
   manually?
 * I tried to add in in media.php in:
 * $html = ‘<img loading=”lazy” ‘ . $hwstring; foreach ( $attr as $name => $value){
   $html .= ” $name=” . ‘”‘ . $value . ‘”‘; } $html .= ‘ />’;
 * But it didn’t work.

Viewing 1 replies (of 1 total)

 *  Plugin Author [Ajay](https://wordpress.org/support/users/ajay/)
 * (@ajay)
 * [2 years, 3 months ago](https://wordpress.org/support/topic/loading-lazy-is-missing/#post-17407188)
 * What is your site URL and how are you lazy loading other images? The plugin uses
   the inbuilt [wp_img_tag_add_loading_optimization_attrs](https://developer.wordpress.org/reference/functions/wp_img_tag_add_loading_optimization_attrs/)
   function in WordPress to modify the img tag for this.

Viewing 1 replies (of 1 total)

The topic ‘Loading lazy is missing’ 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: [2 years, 3 months ago](https://wordpress.org/support/topic/loading-lazy-is-missing/#post-17407188)
 * Status: resolved