mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Add lazy loading to topic list avatars
This commit is contained in:
parent
53b7220638
commit
a3fe52dff3
@ -95,7 +95,7 @@ export function avatarImg(options, customGetURL) {
|
|||||||
title = ` title='${escaped}' aria-label='${escaped}'`;
|
title = ` title='${escaped}' aria-label='${escaped}'`;
|
||||||
}
|
}
|
||||||
|
|
||||||
return `<img alt='' width='${size}' height='${size}' src='${path}' class='${classes}'${title}>`;
|
return `<img loading='lazy' alt='' width='${size}' height='${size}' src='${path}' class='${classes}'${title}>`;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function tinyAvatar(avatarTemplate, options) {
|
export function tinyAvatar(avatarTemplate, options) {
|
||||||
|
Loading…
Reference in New Issue
Block a user