• 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

    (@vmarko)

    Hello @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

    (@j3th)

    It’s simple JS function:

    window.onload = function() {
      window.print();
    }

    Problem occurs on Safari 13.0.5

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @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

    (@j3th)

    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 4 years, 11 months ago by spacemind.
    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @j3th

    Thanks for the info, I’ll get back to you on this as soon as we check.
    Thanks!

    Thread Starter spacemind

    (@j3th)

    Hello, possibly any update on this topic?

    Plugin Contributor Marko Vasiljevic

    (@vmarko)

    Hello @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

    (@vmarko)

    Hello @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.