Post by none » Thu Apr 01, 2021 2:31 am

Hi,

Ive tried to add a third-party youtube lazy-load script to my Opencart 3.0.3.7. Although everything seems fine the script just doesnt want to run.
This is the script: https://www.cssscript.com/load-youtube- ... -lazyload/
Now I added the JS and CSS to my header. DIV content is inside the product description. Yet the script just doesnt want to run.
This is the product's page: https://test.zedperformance.co.uk/outla ... -chain-kit
https://test.zedperformance.co.uk/catal ... azyload.js
https://test.zedperformance.co.uk/catal ... zyload.css

I contacted the author of the script. He has really been helpful and sent me a simple html file where the script was embedded the content instead of loading it in the header. When the script was running from the content then it was was working fine. Im absolutely clueless why the script doesnt want to run from the header. In the content only a black screen is visible without any effect.

This is inside the content:

Code: Select all

<div class="yt-lazyload" data-id="9CAz_vvsK9M" data-thumb="" data-logo="1">
Thank you

New member

Posts

Joined
Wed Sep 09, 2009 3:53 am

Post by ADD Creative » Thu Apr 01, 2021 2:46 am

Missing </div> of the end?

www.add-creative.co.uk


Expert Member

Posts

Joined
Sat Jan 14, 2012 1:02 am
Location - United Kingdom

Post by paulfeakins » Thu Apr 01, 2021 6:16 pm

none wrote:
Thu Apr 01, 2021 2:31 am
I contacted the author of the script. He has really been helpful and sent me a simple html file where the script was embedded the content instead of loading it in the header. When the script was running from the content then it was was working fine. Im absolutely clueless why the script doesnt want to run from the header. In the content only a black screen is visible without any effect.
Probably offer to pay him to sort it out if I were you.

For quick, professional OpenCart support please email info@antropy.co.uk


User avatar
Guru Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - Reigate, Surrey, United Kingdom
Who is online

Users browsing this forum: No registered users and 35 guests