• Hello guys,

    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.

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘How to fix blurry images in sliders’ is closed to new replies.