Hello, just wondering out of the box, no custom coding - is it possible with an element (not sure which one I would be using to do this) load some content only after a user clicks something on the screen?
Goal, have a user click a button or something and only then would the youtube embed load so it doesn’t slow down the load time…
Does something like that exist and currently built in?
Eg of this is a link in the secure note. And i’m using custom javascript to do this … just trying to avoid doing it this way if there is already a built in way?
document.getElementById("playVideo").onclick = function() {
var iframe = document.getElementById("myIframe");
iframe.src = "https://www.youtube.com/embed/#####?autoplay=1";
iframe.style.display = "";
this.style.display = "none";
};
And then i’m just creating a button with the id “playVideo” etc.
