lazy laoding blog images

I have tried a couple different js solutions to lazy load images. I can get it to work on some pages but not others. It doesn’t seem to work here:

I can tell because if I do an audit it still asks me to defer images off the page.

But if I run it on this page they don’t show up.

Any ideas?

@likwid , I took a quick look at your blog source code and it looks like you are loading your blog content twice in the template. The first instance (which you see) is properly lazy loading the images but the second is not. Have a look at your template and see if you can find a second instance of the {% for content in contents %} loop. I’m 99% certain you can just remove it.

Hi dbeau79,

Thank you for taking a look. That was the problem. No idea why the code is in there twice. Gotta love legeacy code. Thanks

again for your help.