Skip to main content
CSS-Tricks
  • Articles
  • Notes
  • Links
  • Guides
  • Almanac
  • Picks
  • Shuffle
Search

Articles Tagged
iframe

3 Articles
{
,

}
Direct link to the article iframe feedback
iframe

iframe feedback

What if an <iframe had within it another <iframe of the exact same source? Inception, as they say. Baptise Crespy does this all-important research in the name of art and science.

Turns out browsers are smart enough to not …

Chris Coyier on Feb 11, 2021
Direct link to the article lite-youtube-embed
iframe web components youtube

lite-youtube-embed

A standard copy-and-paste YouTube embed lands on your page as an <iframe></iframe> which loads a big ol’ pile of other stuff to play that video. But the UX of it is still essentially an image and a play button. Click …

Chris Coyier on Dec 13, 2019
Direct link to the article Lazy load embedded YouTube videos
iframe lazy loading youtube

Lazy load embedded YouTube videos

This is a very clever idea via Arthur Corenzan. Rather than use the default YouTube embed, which adds a crapload of resources to a page whether the user plays the video or not, use the little tiny placeholder webpage that …

Chris Coyier on Aug 20, 2019 Updated on Dec 27, 2021

CSS-Tricks is powered by DigitalOcean.

Keep up to date on web dev

with our hand-crafted newsletter

DigitalOcean
  • About DO
  • Cloudways
  • Legal stuff
  • Get free credit!
CSS-Tricks
  • Contact
  • Write for CSS-Tricks!
  • Advertise with us
Social
  • RSS Feeds
  • CodePen
  • Mastodon
  • Bluesky
Back to Top