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,
|
unicode: emoji.unicode,
|
||||||
shortcodes: emoji.shortcodes?.toString(),
|
shortcodes: emoji.shortcodes?.toString(),
|
||||||
hexcode: emoji.hexcode,
|
hexcode: emoji.hexcode,
|
||||||
|
loading: 'lazy',
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
))
|
))
|
||||||
@@ -61,6 +62,7 @@ const EmojiGroup = React.memo(({ name, groupEmojis }) => {
|
|||||||
<img
|
<img
|
||||||
className="emoji"
|
className="emoji"
|
||||||
draggable="false"
|
draggable="false"
|
||||||
|
loading="lazy"
|
||||||
alt={emoji.shortcode}
|
alt={emoji.shortcode}
|
||||||
unicode={`:${emoji.shortcode}:`}
|
unicode={`:${emoji.shortcode}:`}
|
||||||
shortcodes={emoji.shortcode}
|
shortcodes={emoji.shortcode}
|
||||||
|
|||||||
Reference in New Issue
Block a user