Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EmojiPicker extremely slow on Safari #404

Open
bojandurmic opened this issue Mar 6, 2024 · 9 comments
Open

EmojiPicker extremely slow on Safari #404

bojandurmic opened this issue Mar 6, 2024 · 9 comments

Comments

@bojandurmic
Copy link

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
Copy link
Owner

ealush commented Mar 6, 2024

Can you try without lazyLoadEmojis?

@bojandurmic
Copy link
Author

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

@bart-wijnants-hs
Copy link

We're noticing the same behaviour.

@minjo0n61
Copy link

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

@bart-wijnants-hs
Copy link

We are using emojiStyle="native".

@ignacio-alonso-rehor
Copy link

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

@bojandurmic
Copy link
Author

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

@ignacio-alonso-rehor
Copy link

Thanks, I'll give it a look!

@FleetAdmiralJakob
Copy link

FleetAdmiralJakob commented Nov 30, 2024

Same problem. Maybe it's worth running the React Compiler over the project. It would be an easy fix. I don't want to go to emoji mart as I think this library is better but I have tried everything but this performance is unacceptable.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants