Skip to content
- Choosing a selection results in a full page refresh.
- Opens in a new window.
document.addEventListener("DOMContentLoaded", function () {
const images = document.querySelectorAll("img");
images.forEach(function (img) {
// Skip logo and above-the-fold priority images
if (
img.closest("header") ||
img.getAttribute("fetchpriority") === "high" ||
img.loading === "eager"
) {
return;
}
img.setAttribute("loading", "lazy");
img.setAttribute("decoding", "async");
});
});