ealush / emoji-picker-react

The most popular React Emoji Picker
https://ealush.com/emoji-picker-react/
MIT License
984 stars 165 forks source link

EmojiPicker extremely slow on Safari #404

Open bojandurmic opened 4 months ago

bojandurmic commented 4 months ago

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.

ealush commented 4 months ago

Can you try without lazyLoadEmojis?

bojandurmic commented 4 months ago

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

bart-wijnants-hs commented 4 months ago

We're noticing the same behaviour.

minjo0n61 commented 3 months ago

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

bart-wijnants-hs commented 3 months ago

We are using emojiStyle="native".

ignacio-alonso-rehor commented 6 days ago

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

bojandurmic commented 6 days ago

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

ignacio-alonso-rehor commented 6 days ago

Thanks, I'll give it a look!