web/_includes/lozad.html
2020-05-01 02:18:04 +08:00

7 lines
No EOL
321 B
HTML

<!-- image lazy load: https://github.com/ApoorvSaxena/lozad.js -->
<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);
observer.observe();
</script>