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:
Justin Shaw 2022-01-25 22:48:11 -08:00 committed by GitHub
parent 20b99dce48
commit 308bdb3d46
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}