mirror of
https://github.com/koreanbots/core.git
synced 2025-12-15 14:10:22 +00:00
feat: using image lazy loading
close: https://github.com/koreanbots/v2-testing/issues/52
This commit is contained in:
parent
7b39640112
commit
5bf3ce07a7
@ -16,6 +16,7 @@ const DiscordAvatar = (props: {
|
||||
return (
|
||||
<img
|
||||
alt={props.alt ?? 'Image'}
|
||||
loading='lazy'
|
||||
className={props.className}
|
||||
src={
|
||||
KoreanbotsEndPoints.CDN.avatar(props.userID, { format: !webpUnavailable ? 'webp' : 'png', size: props.size ?? 256})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user