• smhollingsworth

    (@smhollingsworth)


    I have an above-the-fold image, in the body of my site, that I cannot stop from lazy loading. I’m using Litespeed Cache to control lazy loading, but this is from WP, as you can see, here:

    <img data-perfmatters-preload="" width="275" height="275" decoding="async" src="https://wherethebrainrots.com/wp-content/uploads/elementor/thumbs/Skull-Ic…" alt="Skull Icon Full Color" loading="lazy">
    
    

    If it was Litespeed causing it, there would be a “data-lazyloaded=”1”” in there. In my child theme’s functions.php, I have


    add_filter( 'wp_lazy_loading_enabled', '__return_false');

    but that does absolutely nothing. Perfmatters is not set to control lazy load, so I know it isn’t that, either. I do have permatters set to preload the first 3 images, but that is not helping, nor is adding the image directly to preload.

    How do I make the lazy load stop? I’ve been bashing my head against the keyboard for 2 weeks on this.

    Edit: I do not know why this worked, but I changed the size of the image and the lazy load stopped. I had a custom size of 275×275 and I changed to the 300×300 thumbnail. The CSS for the two sizes was very different. Problem solved, I guess.

    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 ‘Why can’t I disable WP lazy load?’ is closed to new replies.