web/_includes/lozad.html

7 lines
321 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>
<script type="text/javascript">
const el = document.querySelectorAll('#post-wrapper img');
const observer = lozad(el);
2019-12-01 20:15:55 +03:00
observer.observe();
</script>