Emoji selector is really slow when using lots of emojis

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Summary

On a self-hosted Gitlab environment, having too many emojis slows down the loading of certain pages like issues and merge requests

Steps to reproduce

  • Have a Gitlab self-hosted environment
  • Create an organization
  • Upload 5000 emojis
  • Create an issue
  • Go to the issue page after creation

What is the current bug behavior?

Pages are really slow and sending out a lot of GraphQL queries

What is the expected correct behavior?

Faster load time, there's no need to load all the emojis at once when opening the page

Possible fixes

  • Disable loading the emojis when loading the issue
  • Not sure about this, but do the GraphQL request really need to be chunks of 5KB ?
Edited by 🤖 GitLab Bot 🤖