Title: Lazy load causing 404
Last modified: April 22, 2021

---

# Lazy load causing 404

 *  Resolved [ac23](https://wordpress.org/support/users/ac23/)
 * (@ac23)
 * [5 years, 4 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/)
 * I noticed recently that when a customer clicks on the Add to Cart button on my
   site, lazy loading images causes 404 errors by trying to load myurl.com/image/
   gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
 * This is an issue as it conflicts with iThemes Security 404 detection and ends
   up locking out customers. Any idea how to resolve this short of disabling lazy
   load?
    -  This topic was modified 5 years, 4 months ago by [ac23](https://wordpress.org/support/users/ac23/).

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

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/#post-14352653)
 * [@ac23](https://wordpress.org/support/users/ac23/) Can you please try to add 
   the cart url to WP-Optimize > Cache > Advanced tools > Exclude urls from caching
   and check if it helps to fix the issue?
 *  Thread Starter [ac23](https://wordpress.org/support/users/ac23/)
 * (@ac23)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/#post-14352958)
 * Doesn’t seem like that worked, [@bornforphp](https://wordpress.org/support/users/bornforphp/)
 * I did notice it only occurs for resources that are lazy loaded. Anything that
   was not lazy loaded on the page will not be an issue. Only once you scroll down
   and images are lazy loaded and you try to add to cart do you get this 404 (which
   btw, is not apparent to the user. It occurs in the background. You can see it
   happening in the browser console)
    -  This reply was modified 5 years, 3 months ago by [ac23](https://wordpress.org/support/users/ac23/).
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/#post-14354605)
 * [@ac23](https://wordpress.org/support/users/ac23/) Lazy loading is part of Premium
   feature in WP-Optimize, Do you have any other image optimization plugin installed
   which does lazy loading?
 * Can you please try to disable the other image optimization plugin if installed
   and check if it helps to fix the issue?
 *  Thread Starter [ac23](https://wordpress.org/support/users/ac23/)
 * (@ac23)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/#post-14361829)
 * I don’t have any other image optimization products.
 * Did some more troubleshooting and found out that this only occurs if the product
   being added to the cart is a product with an image placeholder instead of an 
   actual product image. If you don’t click add a product with a placeholder image
   to cart, it will never trigger a 404. Once you add a product with the placeholder
   though it will generate 404’s for every product thereafter.
 * I tried changing the placeholder image but the result is the same. Using latest
   Woocommerce (5.2.2) if that makes a difference.
    -  This reply was modified 5 years, 3 months ago by [ac23](https://wordpress.org/support/users/ac23/).
 *  Thread Starter [ac23](https://wordpress.org/support/users/ac23/)
 * (@ac23)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/#post-14361851)
 * Here is another thread for another optimization plugin, maybe the same thing 
   is happening here: [https://wordpress.org/support/topic/404-with-lazy-load-placeholder-gif/](https://wordpress.org/support/topic/404-with-lazy-load-placeholder-gif/)
 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/#post-14363564)
 * [@ac23](https://wordpress.org/support/users/ac23/) Like I said Lazy load is not
   available in Free version of WP-Optimize plugin, its a feature in Premium version,
   please check if your theme has Lazy load feature which is causing the issue.

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

The topic ‘Lazy load causing 404’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 6 replies
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [5 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-causing-404/#post-14363564)
 * Status: resolved