web/_includes/lozad.html

8 lines
326 B
HTML
Raw Normal View History

<!-- image lazy load: https://github.com/ApoorvSaxena/lozad.js -->
2019-12-01 20:15:55 +03:00
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/lozad/dist/lozad.min.js"></script>
2020-05-28 23:51:20 +03:00
2019-12-01 20:15:55 +03:00
<script type="text/javascript">
2020-05-28 23:51:20 +03:00
const imgs = document.querySelectorAll('#post-wrapper img');
const observer = lozad(imgs);
2019-12-01 20:15:55 +03:00
observer.observe();
</script>