Skip to content

Instantly share code, notes, and snippets.

@ivanrad
Created May 11, 2019 09:15
Show Gist options
  • Save ivanrad/6a9b6ff3c53ce1c3525b003357b650b1 to your computer and use it in GitHub Desktop.
Save ivanrad/6a9b6ff3c53ce1c3525b003357b650b1 to your computer and use it in GitHub Desktop.
lazy loading feature test
<!doctype html>
<body>
<script type='text/javascript'>
if ('loading' in HTMLImageElement.prototype) {
console.log('lazy loading supported...');
} else {
console.log('needs polyfill...');
}
</script>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment