Ive tried to add a third-party youtube lazy-load script to my Opencart 22.214.171.124. 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">