emoji-picker-react icon indicating copy to clipboard operation
emoji-picker-react copied to clipboard

EmojiPicker extremely slow on Safari

Open bojandurmic opened this issue 11 months ago • 8 comments

Hey everyone, I'm not sure if I am doing something wrong or if this is a known issue.

This is my code:

<EmojiPicker
  width={360}
  height={400}
  theme={Theme.AUTO}
  skinTonesDisabled={true}
  reactionsDefaultOpen={true}
  open={reactionPickerShown}
  previewConfig={{
    showPreview: false,
  }}
  lazyLoadEmojis
  onReactionClick={onReactionClick}
  onEmojiClick={onReactionClick}
/>;

Whenever reactions are expanded, Safari freezes up for over five seconds before finally showing the full emoji picker. Chrome has no such issue. Is there anything I can do speed it up? It seems like it spends most of the time trying to download images and render DOM nodes.

bojandurmic avatar Mar 06 '24 12:03 bojandurmic

Can you try without lazyLoadEmojis?

ealush avatar Mar 06 '24 12:03 ealush

Hey @ealush , it's neither better nor worse.

bojandurmic avatar Mar 06 '24 12:03 bojandurmic

We're noticing the same behaviour.

bart-wijnants-hs avatar Mar 11 '24 07:03 bart-wijnants-hs

I guess you didn't use emojiStyle="native"

minjo0n61 avatar Mar 16 '24 06:03 minjo0n61

We are using emojiStyle="native".

bart-wijnants-hs avatar Mar 16 '24 08:03 bart-wijnants-hs

I'm still experiencing this issue, has anybody found a fix for it?

ignacio-alonso-rehor avatar Jul 04 '24 15:07 ignacio-alonso-rehor

The fix seems to be using a different library. I went with emoji-mart and it works great.

bojandurmic avatar Jul 04 '24 16:07 bojandurmic

Thanks, I'll give it a look!

ignacio-alonso-rehor avatar Jul 04 '24 18:07 ignacio-alonso-rehor