DEV Community

Discussion on: Lazy load embedded YouTube videos

Collapse
 
haggen profile image
Arthur Corenzan • Edited

Well they're a different story cause they're not <iframe>, just regular video elements. You could go with the recently added loading="lazy" attribute, but if you need wider support you'll have to go with a JS based method to lazily load those videos. There are a bunch of implementations out there, with varying levels of sophistication. Sorry I don't have one to recommend.