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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user