nextcloud-libraries / nextcloud-libraries/nextcloud-vue
Lazy load emoji index
Open
Nobody has claimed this yet.
bug
feature: emoji picker
feature: functions
feature: rich-contenteditable
- Dominant language
- Vue
- Stars
- 246
- Forks
- 99
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 103
Description
Currently entire emoji data JSON is bundled. It is quite large (around 800 kB).
It makes some functions and components extremely heavy in bundle-size:
emojiSearch(sometimes it is used just to get the 5 most recent emojis)NcEmojiPicker(even without opening it)NcRichContenteditable(for:autocomplete, that may not even be used by the user)
Proposal:
- Add
async emojiSearchLazythat only loads the index on the first usage NcEmojiPicker: load emojis only after openNcRichContenteditable: use async list loader for emoji picker
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the current emojiSearch implementation and the emoji data import, then inspect NcEmojiPicker and NcRichContenteditable to understand when each requests emoji data. Done means the index is loaded only when search, picker opening, or autocomplete requires it, rather than being bundled eagerly for every use.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100