Installation
Download this repository
Connect index.js from repository to your index.html
Add on some img "lazy" id
Example
<html>
<head>
<title>Lazy-images</title>
</head>
<body>
<img id="lazy" src="https://myoctocat.com/assets/images/base-octocat.svg" />
<script type="module" src="index.js"></script>
</body>
</html>