Add image lazy load for markdown

This commit is contained in:
cuom1999 2022-10-29 01:25:22 -05:00
parent 42eb5115d1
commit b43772c3e5
5 changed files with 18 additions and 4 deletions

View file

@ -174,6 +174,12 @@ $(function () {
xhr.setRequestHeader('X-CSRFToken', $.cookie('csrftoken'));
}
});
setTimeout(() => {
$("[data-src]img").each(function() {
$(this).attr("src", $(this).attr("data-src"));
})
}, "500");
});
if (!Date.now) {