YouTube Videos
To disable the automatic loading and execution of the YouTube videos, you have to modify i.e. the iframe code with the following code:
<iframe type="text/plain" data-src="https://www.youtube.com/embed/M7lc1UVf-VE" data-name="youtube" loading="lazy" ...>
Since ConsentFriend 1.2.0 the embedded YouTube videos are hidden and a placeholder with a consent button inside is displayed.
Warning
ConsentFriend or Klaro does not load the videos in the order in which the iframe
tags appear in the HTML code, but in a random order. This is why, when there are
many videos on a page, it takes a while for the previews to appear in the
browser’s viewport. This can be reduced by using the loading="lazy" attribute
in the iframe tag.