Upon checking the Network tab in the browser’s inspector tool, I can see that there is a 500 error from the server saying the custom comment template is failing to load.
I traced the difference between pages that load correctly and pages that don’t, and saw that the ones with more than 10 comments were making a call to admin-ajax, while the posts with fewer than 10 comments weren’t.
The error is occurring in the start_el
function in the Walker_Comment class. The error that gets returned is that et_custom_comments_display
is not a valid function. This function is a custom function found in the Divi theme’s builder .../wp-content/themes/Divi/includes/builder/functions.php
. Specifically it is happening on line 183 it the current version of Divi, where it says call_user_func( $args['callback'], $comment, $args, $depth );
When lazy loading is off, this works fine. When lazy loading is on, it can’t find this function.
]]>I have a strange problem. I have integrated your plugin into a page that runs with BBPress and Youzify. The site ran without any problems until a few days ago. Recently, however, the browser (tested on Chrome, Safari and Firefox) freezes completely when posts are lazyloaded at the end of the feed. It doesn’t matter whether it happens via click or via infinite scroll. Unfortunately, there is no error message in the browser that I could debug. After a long search, I found out that it seems to be related to your plugin. If I deactivate it, everything works fine again. Do you have any idea what could be causing this? Something in one of the latest updates?
]]>“img class=”slide lazy vcentered loaded”
Even the site logo gets lazy loaded (don’t know where to find this option). Both are the very first image elements and really should not be lazy loaded.
Any ideas? I’m on Customizr Pro.
Cheers, Alex
]]>I have just built a website and it was running slow, even though Smush was installed. So I compressed images with TinyPNG and reuploaded them. This increased the speed slightly, but the overall Google DevTools performance score only increased by about 10 (was still rubbish at about 32 on mobile view and 20 on desktop).
I then installed WP Total Cache, but immediately realised the header of my site was behaving strangely and the loading speed was REALLY slow. I realised that the lazy load feature in both plugins were possibly interacting, so I deactivated and deleted WP Total Cache. The issue remained, so I removed Smush which rectified the header issues, but the slow page load remained.
I re-downloaded Smush and it did not cause any issue with the header, but it did not really help page speed. My hosting company cleared the cache at their end which brought the header issue back – until I deleted Smush again.
Any ideas what to do? As you can tell I am not a developer in the slightest.
Thanks in advance for any help.
data-skip-lazy
attribute?
Is there another way the plugin allows users to exclude content from lazy loading?
]]>Well, except for one thing: There seems to be a conflict with the lazy-load feature of Perfmatters. When I activate this, the lightbox no longer works properly. It seems like Meow Lightbox is loading the placeholder images that are replacing the original images until they come into the viewport.
Perfmatters has the option to exclude images or parent containers of images from lazy loading, but that didn’t help. I tried various settings of Meow Lightbox but without success, too.
Any idea how to fix this? You can see the problem live on the page I have attached.
Cheers
Philipp
I use WP Bakery with the Mitech theme for a customer website. Unfortunately, I have the problem that images in the theme’s own sliders only load completely when you click on them.
I suspect it has to do with lazy loading, so I have already used the following script
document.addEventListener('DOMContentLoaded', function() {
var sliderImages = document.querySelectorAll('.logo-slider img');
sliderImages.forEach(function(img) {
img.setAttribute('loading', 'eager');
});
});
to give the images the loading attribute “Eager” and removed lazy loading completely with the following php function
add_filter('wp_lazy_loading_enabled', '__return_false');
Unfortunately, the images still only load on click.
Do you have the same problem?
I hope you can help me. You can find the corresponding slider in the mobile viewport above the footer.
]]>Obviously we deploy new CSS code from time to time, and when we do we want any return visitors of our website to have the latest code.
How we achieve this
When enqueuing this main-bundle.js file, using wp_enqueue_script() we provide a version number, which is (normally) appended onto the end of the file name e.g. main.bundle.js?ver=24.04.1
This means when we update our CSS, we update our version number. Browsers treat this as a new file and load the new code.
The issue
However, when using Speed Optimiser the contents of this file are loaded by other means (presumably lazy loading).
Accordingly, when we change our CSS code, the old code remains in browser cache.
—
How can we stop this happening?
]]>Requires snippet to be added to php, but support is not responsive to provide it.
Otherwise is quite easy to be configured.
]]>