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}'`;
|
||||
}
|
||||
|
||||
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) {
|
||||
|
||||
Reference in New Issue
Block a user