Title: Lazy Load exclude filter
Last modified: April 17, 2020

---

# Lazy Load exclude filter

 *  Resolved [spacemind](https://wordpress.org/support/users/j3th/)
 * (@j3th)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/)
 * Hello,
    On my site I have printing function called withwindow.print() JS method.
   My problem is that sometimes function fires just before all images finish to 
   load which causes blank space instead of wanted image.
 * Is there a JS functions / PHP filter which could allow me to disable lazy loading
   in that area?

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

 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12688017)
 * Hello [@j3th](https://wordpress.org/support/users/j3th/)
 * I am sorry bout the issue you are experiencing and I am happy to assist you with
   this.
    We need to replicate this to investigate so can you please share an example
   of the function so we can test this. Thank you!
 *  Thread Starter [spacemind](https://wordpress.org/support/users/j3th/)
 * (@j3th)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12688295)
 * It’s simple JS function:
 *     ```
       window.onload = function() {
         window.print();
       }
       ```
   
 * Problem occurs on Safari 13.0.5
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12688770)
 * Hello [@j3th](https://wordpress.org/support/users/j3th/)
 * Thank you for the information.
    Does this happen only on Safari 13.0.5 or on 
   other Browsers as well? Thanks!
 *  Thread Starter [spacemind](https://wordpress.org/support/users/j3th/)
 * (@j3th)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12689305)
 * Only on Safari 13.0.5. I think that problem lies in fact that print function 
   fires before images are fully loaded so that’s the reason I asked about filter/
   code to disable lazy-load feature.
    -  This reply was modified 6 years, 3 months ago by [spacemind](https://wordpress.org/support/users/j3th/).
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12689502)
 * Hello [@j3th](https://wordpress.org/support/users/j3th/)
 * Thanks for the info, I’ll get back to you on this as soon as we check.
    Thanks!
 *  Thread Starter [spacemind](https://wordpress.org/support/users/j3th/)
 * (@j3th)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12706890)
 * Hello, possibly any update on this topic?
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12707051)
 * Hello [@j3th](https://wordpress.org/support/users/j3th/)
 * Sorry for the delay. As you said this happens only on safari. We need to investigate
   and test this so it does not affect other browsers.
    Thank you for your patience.
 *  Plugin Contributor [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * (@vmarko)
 * [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12715061)
 * Hello [@j3th](https://wordpress.org/support/users/j3th/)
 * Thank you for your patience. After testing this, you can use lazyload option 
   with exclude keywords so that tags containing it will not be processed. Or use
   w3tc_lazyload_excludes filter to specify them via code (wp-content/plugins/w3-
   total-cache/LazyLoad_Mutator.php)
    Once again thank you for your patience.

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

The topic ‘Lazy Load exclude filter’ is closed to new replies.

 * ![](https://ps.w.org/w3-total-cache/assets/icon-256x256.png?rev=1041806)
 * [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/w3-total-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/w3-total-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/w3-total-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/w3-total-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/w3-total-cache/reviews/)

 * 8 replies
 * 2 participants
 * Last reply from: [Marko Vasiljevic](https://wordpress.org/support/users/vmarko/)
 * Last activity: [6 years, 3 months ago](https://wordpress.org/support/topic/lazy-load-exclude-filter/#post-12715061)
 * Status: resolved