Last active
November 19, 2019 22:20
-
-
Save matthewstokeley/e5e6866505dc50f5d1aabf2b2f1fa122 to your computer and use it in GitHub Desktop.
native image lazy loading with fall back
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- --> | |
<img src="" srcset="" loading="lazy" data-lazy-load="true" alt="" /> | |
<script> | |
if ( HTMLImageElement.prototype.loading === undefined ) { | |
// load lazy loading plugin | |
} | |
</script> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment