Title: Lazyload images
Last modified: August 18, 2018

---

# Lazyload images

 *  Resolved [jsndvn](https://wordpress.org/support/users/jsndvn/)
 * (@jsndvn)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/lazyload-iamges/)
 * Hi
 * First off, thanks very much for the plugin, it works very well for my needs so
   far and seems to be compatible with the latest API changes on Instagram.
 * However, I can’t seem to find a way to lazyload the images fetched by the plugin.
   Basically using this method:
 *     ```
       $(document).ready(function() {
         $('.instagallery-image').addClass('lazyload')
       });
       ```
   
 * The class isn’t applied to the image elements. If I change the target to the 
   widget itself, it gets applied and processed by the lazyload script I’m using.
 * Is there some method I can use that you’re aware of?
 * Thanks!
    -  This topic was modified 7 years, 10 months ago by [jsndvn](https://wordpress.org/support/users/jsndvn/).

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Thread Starter [jsndvn](https://wordpress.org/support/users/jsndvn/)
 * (@jsndvn)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/lazyload-iamges/#post-10602278)
 * Just an update having explored the plugin code some more. I made a copy of `gallery.
   php` and included it in my theme folder, from where I was able to add the `lazyload`
   class directly to the image elements as they appear in the widget. It’s still
   not working as the images are still fetched on page load as opposed to when they
   appear in the viewport (in this case, when the footer is visible). The same applies
   when using your own experimental `.ig-lazy` class that I found in the plugin.
 * I feel like I’m a bit closer but what am I missing here?
 * Thanks again!
 *  [Karan](https://wordpress.org/support/users/buntisoft/)
 * (@buntisoft)
 * [7 years, 10 months ago](https://wordpress.org/support/topic/lazyload-iamges/#post-10611030)
 * hi, thanks for exploring this. i am already trying to integrate lazy-load but
   have some issues with picture sizes. soon i will find the way.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Lazyload images’ is closed to new replies.

 * ![](https://ps.w.org/insta-gallery/assets/icon-256x256.gif?rev=3301774)
 * [Social Feed Gallery](https://wordpress.org/plugins/insta-gallery/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/insta-gallery/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/insta-gallery/)
 * [Active Topics](https://wordpress.org/support/plugin/insta-gallery/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/insta-gallery/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/insta-gallery/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Karan](https://wordpress.org/support/users/buntisoft/)
 * Last activity: [7 years, 10 months ago](https://wordpress.org/support/topic/lazyload-iamges/#post-10611030)
 * Status: resolved