0
0
mirror of https://github.com/naturalcrit/homebrewery.git synced 2026-06-21 22:28:42 +00:00

Add lazy loading to images

This commit is contained in:
Gazook89
2026-04-28 22:21:35 -05:00
parent 5426aa82c1
commit a2e5688ede
+1 -1
View File
@@ -83,7 +83,7 @@ renderer.image = function (token) {
if(href === null)
return text;
let out = `<img src="${href}" alt="${text}" style="--HB_src:url(${href});"`;
let out = `<img loading="lazy" src="${href}" alt="${text}" style="--HB_src:url(${href});"`;
if(title)
out += ` title="${title}"`;