Skip to content

Michael.blog

Tag: HTML

Lazy loading YouTube gets a bit meta

I was recently shown the CSS Tricks article, Lazy load embedded YouTube videos, and holy heck is it clever. The gist is that it loads the HTML content inside srcdoc instead of src. In this case, the content is a link to the video. It also lazy loads the image (performance!). I went a tiny… Continue reading Lazy loading YouTube gets a bit meta

Published April 30, 2021
Categorized as Javascript, Web Tagged CSS, HTML, Next.js, Open source, React, Trick
Proudly powered by WordPress.
 

Loading Comments...