• Resolved jake79

    (@jake79)


    Hi,

    Whenever I use your lazy load feature and then test the page on GT Metrix It always warns me not to lazy load the LCP image?

    I don’t get this warning if I use the LiteSpeed lazy load or any other lazyload plugin.

    However, I’ve I have been using your plugin for a long time now and was wondering is there a way not to lazy load the LCP image, but still lazy load the rest of the page?

    Thanks ??

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

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Albert Peschar

    (@kiboit)

    Hi @jake79,

    You can disable the lazy loading for any image by adding the loading=eager attribute on the image. Like this:

    <img src="myimage.jpg" loading="eager">

    –Albert

    Thread Starter jake79

    (@jake79)

    Hi,

    Thanks for getting back to me.

    I was hoping there was some code you could give me that I could put in function PHP that stops your plugin lazy loading the hero on every page.

    Cheers

    Plugin Author Albert Peschar

    (@kiboit)

    Hi @jake79,

    That would probably depend on the theme, so I’m not able to help you with that. Sorry.

    –Albert

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Lazy Loading LCP Image’ is closed to new replies.