Bugfix: Add lazy loading to emoji board (#259)
* add lazy loading to emoji board * add newline to end of package-lock file
This commit is contained in:
parent
20b99dce48
commit
308bdb3d46
1 changed files with 2 additions and 0 deletions
|
@ -53,6 +53,7 @@ const EmojiGroup = React.memo(({ name, groupEmojis }) => {
|
|||
unicode: emoji.unicode,
|
||||
shortcodes: emoji.shortcodes?.toString(),
|
||||
hexcode: emoji.hexcode,
|
||||
loading: 'lazy',
|
||||
}),
|
||||
},
|
||||
))
|
||||
|
@ -61,6 +62,7 @@ const EmojiGroup = React.memo(({ name, groupEmojis }) => {
|
|||
<img
|
||||
className="emoji"
|
||||
draggable="false"
|
||||
loading="lazy"
|
||||
alt={emoji.shortcode}
|
||||
unicode={`:${emoji.shortcode}:`}
|
||||
shortcodes={emoji.shortcode}
|
||||
|
|
Loading…
Reference in a new issue