# lazy laoding blog images

**URL:** <https://community.hubspot.com/t/lazy-laoding-blog-images/26659>\
**Category:** CMS Development\
**Created:** [October 12, 2020, 9:09pm UTC](https://community.hubspot.com/t/lazy-laoding-blog-images/26659 "2020-10-12T21:09:26Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![likwid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/likwid/32/58551_2.png) [@likwid](https://community.hubspot.com/u/likwid)\
**Post date:** [October 12, 2020, 9:09pm UTC](https://community.hubspot.com/t/lazy-laoding-blog-images/26659/1 "2020-10-12T21:09:26Z")

</div>

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:

> **[Modern Digital Business | DocuWare Blog](https://start.docuware.com/blog/document-management)**
>
> DocuWare's Modern Digital Business blog provides regular updates on document management, digital workflow, process automation and content services.

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

> **[PageSpeed Insights](https://pagespeed.web.dev/analysis?utm_source=psi&utm_medium=redirect&url=https:%2F%2Fstart.docuware.com%2Fblog%2Fdocument-management)**

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

> **[PageSpeed Insights](https://pagespeed.web.dev/analysis?utm_source=psi&utm_medium=redirect&url=https:%2F%2Fstart.docuware.com%2Fblog%2Fdocument-management%2Fpage%2F2)**

Any ideas?

---

<div class="post-metadata">

**Author:** ![dbeau79](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dbeau79/32/82797_2.png) [@dbeau79](https://community.hubspot.com/u/dbeau79)\
**Post date:** [October 13, 2020, 12:30am UTC](https://community.hubspot.com/t/lazy-laoding-blog-images/26659/2 "2020-10-13T00:30:20Z")

</div>

@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.

---

<div class="post-metadata">

**Author:** ![likwid](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/likwid/32/58551_2.png) [@likwid](https://community.hubspot.com/u/likwid)\
**Post date:** [October 13, 2020, 12:36pm UTC](https://community.hubspot.com/t/lazy-laoding-blog-images/26659/3 "2020-10-13T12:36:52Z")

</div>

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.
