diff options
| -rw-r--r-- | Info/9/3/Planet/templates/h5p-autoembed.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Info/9/3/Planet/templates/h5p-autoembed.js b/Info/9/3/Planet/templates/h5p-autoembed.js index c26c0c84..8c5128e8 100644 --- a/Info/9/3/Planet/templates/h5p-autoembed.js +++ b/Info/9/3/Planet/templates/h5p-autoembed.js @@ -9,6 +9,8 @@ for (const div of autoEmbedLinksDivs) { iframe.src = "https://" + "lernplattform.bycs.de/mod/hvp/embed.php?id=" + autoEmbedId; iframe.frameborder = div.frameborder ? div.frameborder : 0; iframe.allowfullscreen = div.allowfullscreen ? div.allowfullscreen : "allowfullscreen"; + // Lazily load the iframe + iframe.loading = "lazy"; iframe.title = autoEmbedLink.title; if (div.width) { iframe.width = div.width; |
