The standard YouTube iframe loads ~500 KB of JavaScript and tracks the viewer even before they click play. Use lite embed for blog posts, docs, and marketing pages where the video is secondary content — it shows a static thumbnail and only loads the full player when clicked, improving Core Web Vitals dramatically. Use the standard iframe when YouTube-native features (chapters, comments, cards) are important. Alternative: Paul Irish's lite-youtube-embed component is the gold standard; this tool produces the same output as a pre-configured HTML snippet.
<!-- Standard embed with autoplay from 1:30 to 2:45 -->
<iframe src="https://www.youtube.com/embed/VIDEO_ID?autoplay=1&start=90&end=165"
width="560" height="315" frameborder="0" allow="autoplay" allowfullscreen></iframe>
<!-- Thumbnail URL -->
<img src="https://img.youtube.com/vi/VIDEO_ID/maxresdefault.jpg" alt="Video thumbnail">
<!-- Lite embed - loads player only on click -->
<lite-youtube videoid="VIDEO_ID"></lite-youtube>Last updated: 2026-04-23