Skip to content

Instantly share code, notes, and snippets.

@jeff-at-livecanvas
Last active September 28, 2020 16:02
Show Gist options
  • Save jeff-at-livecanvas/bb1a803465419c62d623305daf6722cd to your computer and use it in GitHub Desktop.
Save jeff-at-livecanvas/bb1a803465419c62d623305daf6722cd to your computer and use it in GitHub Desktop.
Iframe loading = lazy: why does it load so early?
<html>
<body>
<h1 style="margin-bottom:2000px" >Scroll down to trigger the image load.</h1>
<iframe src="https://davidwalsh.name/" loading="lazy" onload="alert('Loaded!');" />
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment