Display none loading content

Hi there,

I’ve seen this being brought up a few times on here and wondering if there was any updates. I have a page that plays a youtube embed out of 24 based on the time of day. The issue i’m having is each youtube embed is being loaded on page load. I have them all set to display none but that obviously doesn’t stop it from initially loading. Is there any work around for this?

Thanks in advance.


Here is my site Read-Only: LINK
(how to share your site Read-Only link)

If the youtube embed is a custom embed, I’d just change the iframe src attribute to e.g. src-unloaded. Then for your script that is detecting the hour and displaying one, just set the src and visibility of the one you want.

Thank you. I will give you a go!