This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## js at bottom of layout | |
# source https://www.npmjs.com/package/vanilla-lazyload | |
<script> | |
(function(w, d){ | |
var b = d.getElementsByTagName('body')[0]; | |
var s = d.createElement("script"); | |
var v = !("IntersectionObserver" in w) ? "8.17.0" : "10.19.0"; | |
s.async = true; // This includes the script as async. See the "recipes" section for more information about async loading of LazyLoad. | |
s.src = "https://cdn.jsdelivr.net/npm/vanilla-lazyload@" + v + "/dist/lazyload.min.js"; | |
w.lazyLoadOptions = {/* Your options here */}; |
OlderNewer