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

feat: add lazy loading to emoji image list #55

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Vuurvos1
Copy link

Context

Improve image loading performance by only loading images that are in view

Summary

Added loading="lazy" to emoji images in body

Relevant Technical Choices

To-do

User-facing changes

Nothing visual changes for the end user

Checklist

  • I have tested this code to the best of my abilities
  • I have added documentation where necessary

Fixes #17

@codesandbox
Copy link

codesandbox bot commented Jul 24, 2023

This branch is running in CodeSandbox. Use the links below to review this PR faster.


CodeSandbox logoCodeSandbox logo  Open in CodeSandbox Web Editor | VS Code | VS Code Insiders | Preview

@delowardev
Copy link
Owner

Hi @Vuurvos1, Thanks so much for taking this issue;

I was thinking of adding a lazy load to the full group; for example, when smileys_people group is in the viewport, it should load all emojis for smileys_people group. Otherwise, visitors may feel a little annoyed if they need to wait to see every emoji.

Another concern is that it may not be a good idea to force lazy-loading for all images; instead we can add an option/prop like this: <EmojiPicker :lazy="true" @select="onSelectEmoji" />

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

Successfully merging this pull request may close these issues.

Lazy loading support based on group visibility.
2 participants