Emoji tests
unicode
📫🥳🫣🤩
- ✅ the easiest solution
- ✅ doesn't rely on external system, but on standard
- ✅ can specify one emoji, only that gets loaded
- ❌ different systems render emojis differently
- ❌ Windows emojis look cheap
CDN
- ✅ can specify one emoji, only that gets loaded
- ✅ always looks the same
- ✅ cdn > local files
- ✅ won't have to care about updating
-
❌ two dependencies
-
benborgers/emojicdn
-
iamcal/emoji-data
- ❌ Might face cumulative layout shift
Local images
- ✅ can specify one emoji, only that gets loaded
- ✅ always looks the same
-
❌ have to either
- download all emojis (unnecessary)
- or download JIT, but then time gets wasted looking for sources / quality might differ
- ❌ Might face cumulative layout shift
My best guess:
- Use CDN
-
Use emoji unicode as alt (alt will not be same size unless we use hacky css)
-
Create component
- [Required input]: Unicode
- [Optional input]: Size -> enum
- Renders emoji with unicode as fallback
-
As emojis are always same (enum) sizes, -> reserve spacing to prevent cumulative layout shift during load
times
- maybe use preloading