Title: Lazy Loading issue
Last modified: December 3, 2018

---

# Lazy Loading issue

 *  Resolved [skunkworks](https://wordpress.org/support/users/skunkworks/)
 * (@skunkworks)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/lazy-loading-issue/)
 * Tried installing the plugin on a development site. Works great EXCEPT… lazy loaded
   images in a slider no longer load anything now. No JPG fallback even.
 * Ideas?

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

 *  Thread Starter [skunkworks](https://wordpress.org/support/users/skunkworks/)
 * (@skunkworks)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10946774)
 * Additional info: Using Owl Carousel’s LazyLoading options detailed here: [Link](http://owlcarousel2.github.io/OwlCarousel2/docs/api-options.html)
 *  Thread Starter [skunkworks](https://wordpress.org/support/users/skunkworks/)
 * (@skunkworks)
 * [7 years, 6 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10981061)
 * Just checking in to see if there was an update. Spent most of the week trying
   to find a way to replicate this plugins functionality using manually generated
   webp files and htaccess rewrite rules but haven’t had any luck yet.
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10982341)
 * Looking into it…
 * Btw: There is also a thread going on here, regarding lazy loading: [https://wordpress.org/support/topic/lazy-loading-12/](https://wordpress.org/support/topic/lazy-loading-12/)
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10982476)
 * I have tried out the Owl Carousel with lazy loading. It actually works fine for
   me. Owl carousel takes the value set in `data-src` attribute and uses it to set
   the `src` attribute. This means that the image is loaded with the same request
   headers, as if it had been placed directly in the HTML. So from the server side
   point of view, and WebP Express, there is no extra ordinary thing going on here.
 * Does the carousel work when you disable WebP Express?
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10982480)
 * With Owl Carousel, remember to set class=”owl-lazy” on the images, otherwise 
   they won’t load
 *  [Jay Holtslander](https://wordpress.org/support/users/jasonh1234/)
 * (@jasonh1234)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10985774)
 * Very strange. Tried it again a second time on the same site and this time it 
   worked.
 * I did find a gotcha though that you may want to warn people about…
 * We found this in our wp-content folder’s .htaccess file. It was impeding the 
   proper operation of WebP Express (eg: WebP conversion tests). Not sure what security
   plugin added that or if we added it manually at some point. BUT we typically 
   use iThemes Security and Sucuri.
 *     ```
       #<FilesMatch "\.(?i:php)$">
       #  <IfModule !mod_authz_core.c>
       #    Order allow,deny
       #    Deny from all
       #  </IfModule>
       #  <IfModule mod_authz_core.c>
       #    Require all denied
       #  </IfModule>
       #</FilesMatch>
       ```
   
 *  Thread Starter [skunkworks](https://wordpress.org/support/users/skunkworks/)
 * (@skunkworks)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10985781)
 * Whoops. Replied from wrong account.
 * Closed as resolved. 👍
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-10987766)
 * Ah, so you two guys are the same…
 * Great that it works now and thanks for sharing your findings! Further down the
   roadmap, I could make WebP Express diagnose this. I have put that in the queue:
   [https://github.com/rosell-dk/webp-express/issues/114](https://github.com/rosell-dk/webp-express/issues/114)
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-11001365)
 * Solved it.
 * The security rules can be overridden by creating a .htaccess in the plugins/webp-
   express/wod folder containing the following rules:
 *     ```
       <FilesMatch "webp-on-demand\.php$">
         <IfModule !mod_authz_core.c>
           Order deny,allow
           Allow from all
         </IfModule>
         <IfModule mod_authz_core.c>
           Require all granted
         </IfModule>
       </FilesMatch>
       ```
   
 * I have created such file. It will be there in the next release (0.9.0)
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-11029100)
 * 0.9.0 is now released, which contains the .htaccess above, which counterfights
   security rules that denies running php files directly in wp-content

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

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

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

## Tags

 * [Lazyload](https://wordpress.org/support/topic-tag/lazyload/)
 * [lazyloading](https://wordpress.org/support/topic-tag/lazyloading/)

 * 10 replies
 * 3 participants
 * Last reply from: [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * Last activity: [7 years, 5 months ago](https://wordpress.org/support/topic/lazy-loading-issue/#post-11029100)
 * Status: resolved