summaryrefslogtreecommitdiff
path: root/layout/_partial/scripts.ejs
blob: a982f7d398e3116c4d582b0d675234c87dc9aa71 (plain)
1
2
3
4
5
6
7
8
9
10
<!-- Lazyload support -->
<% if (theme.lazyload) { %>
    <script defer src="https://cdn.jsdelivr.net/npm/vanilla-lazyload/dist/lazyload.min.js"></script>
    <script>
        window.lazyLoadOptions = {
            elements_selector: ".lazy",
            threshold: 0
        };
    </script>
<% } %>