MDN self-hosted library · e01.org
Lazy loading / notebook

Lazy loading

Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.

html
<link href="style.css" rel="stylesheet" media="all" />
<link href="portrait.css" rel="stylesheet" media="(orientation:portrait)" />
<link href="print.css" rel="stylesheet" media="print" />
html
<img loading="lazy" src="image.jpg" alt="..." />
<iframe loading="lazy" src="video-player.html" title="..."></iframe>
<video
  loading="lazy"
  src="video.mp4"
  poster="poster.jpg"
  width="640"
  height="360"
  controls></video>
<audio loading="lazy" src="audio.mp3" controls></audio>