Block YouTube Cookies when lazyloading Thumbnail

If you look closely, you have two img tags:

enter image description here

You have duplicate codes:

  • The code in your globaljs.js loads from

enter image description here

  • The code inside your script tag embed in home loads from

enter image description here

Last Step:

For thumbnails does not work. You were fetching thumbnail from all along. Change your thumbnail loading code to:

var source = ""+ youtube[i].dataset.embed +"/sddefault.jpg";

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top