- This topic has 4 replies, 2 voices, and was last updated 3 months, 3 weeks ago by David.
May 30, 2020 at 2:24 pm #1308103stephen
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.May 30, 2020 at 5:20 pm #1308196stephen
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.May 31, 2020 at 5:50 am #1308547DavidStaffCustomer Support
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.May 31, 2020 at 7:31 am #1308641stephen
This theme is the only theme I have experienced this problem with. Is there a fix for this or?May 31, 2020 at 9:09 am #1308873DavidStaffCustomer 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.
- You must be logged in to reply to this topic.