[Resolved] lazy loading with w3 cache

Home Forums Support [Resolved] lazy loading with w3 cache

Home Forums Support lazy loading with w3 cache

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1308103
    stephen

    Lazy loading doesn’t appear to work when you click “load more” for displaying additional articles with W3 Cache enabled. The article date and other elements will display but the image leaves an empty blank spot where the photo is supposed to reside.

    Chrome reads the following errors:

    jquery.js?ver=1.12.4-wp:1 Uncaught RangeError: Maximum call stack size exceeded
    at RegExp.[Symbol.replace] (<anonymous>)
    at String.replace (<anonymous>)
    at Function.trim (jquery.js?ver=1.12.4-wp:1)
    at new a.fn.init (autoptimize_f75b64168a75ae0b58e1b7d89e630f23.js:1)
    at n (jquery.js?ver=1.12.4-wp:1)
    at HTMLElement.<anonymous> (autoptimize_f75b64168a75ae0b58e1b7d89e630f23.js:83)
    at HTMLElement.dispatch (jquery.js?ver=1.12.4-wp:1)
    at HTMLElement.r.handle (jquery.js?ver=1.12.4-wp:1)
    at Object.trigger (jquery.js?ver=1.12.4-wp:1)
    at Object.a.event.trigger (autoptimize_f75b64168a75ae0b58e1b7d89e630f23.js:1)

    We are using both autoptimize and W3 Cache. The problem still happens with autoptimize disabled and only W3 Cache running with the “lazy loading” option box checked. Works fine without W3Cache Lazy Loading but that isn’t ideal.

    We prefer to use W3 Cache lazy loading over Autotimized because there is an issue with our ads displaying with Facebook’s in-app browser for mobile users. Ads won’t load on the first page-view half the time, which results in revenue loss.

    Ideally we would like to use W3 Cache lazy loading option.

    #1308196
    stephen

    After further investigating, it doesn’t appear that many wordpress lazy load plugins work at all with this theme. The only one that works is the automized plugin. They all have the same issue when you “load more” and the pictures don’t display.

    #1308547
    David
    Staff
    Customer Support

    Hi there,

    most lazy load plugins only fire their scripts on initial document load.
    Which means they don’t work on content that is ajax loaded.
    This will apply to any theme that is using an Ajax load more function.

    #1308641
    stephen

    This theme is the only theme I have experienced this problem with. Is there a fix for this or?

    #1308873
    David
    Staff
    Customer Support

    Have you spoken with W3 Cache and asked them if there is a workaround for Ajax loaded content ? More than happy to help you implement anything they suggest – its obviously possible as Autoptimize seems to have it working.

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.