Lazy Load Iframe Only After Modal is Triggered
问题 Issue: I cannot natively lazy load an iframe on a modal window. When I check the waterfall in Inspect element > Network, the iframe loads immediately. Goal: The iframe should load ONLY when modal is triggered. Can you help please? I don't use dependencies like jQuery, but javascript is OK if it provides a solution. I tried the native and several other lazy loading solutions with no success. My code: .modal-state { display: none } .modal-state:checked+.modal { opacity: 1; visibility: visible }