Lazy loading of YouTube iframes.

This commit is contained in:
Kaj Forney 2023-02-23 10:56:54 -07:00
parent 7b8ad04859
commit 53f669a39b
Signed by: kforney
GPG key ID: 3AB4E2E04CEF656F

View file

@ -120,7 +120,7 @@
<iframe class="youtube-iframe" src="https://www.youtube.com/embed/N5unzGlC9ME"
title="YouTube video player"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
allowfullscreen></iframe>
allowfullscreen loading="lazy"></iframe>
</div>
</div>
@ -200,7 +200,7 @@
src="https://www.youtube-nocookie.com/embed/nra31mia8Y0" title="YouTube video player"
frameborder="0"
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"
allowfullscreen></iframe>
allowfullscreen loading="lazy"></iframe>
</div>
</div>
</div>