Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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