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

perf: use lazy image loading #65

Merged
merged 1 commit into from Nov 2, 2020
Merged

perf: use lazy image loading #65

merged 1 commit into from Nov 2, 2020

Conversation

nolanlawson
Copy link
Owner

Testing in Chrome, this works quite well. As you scroll, custom emoji are loaded lazily.

In Firefox, it doesn't work well at all, but this is no worse than the status quo of loading all images eagerly at once. Probably FF needs to tweak their algorithm for inner scrollers as opposed to document scrollers.

Safari does not support this yet but it's behind a flag.

For the favorites bar it doesn't matter much since the favorites bar is always visible. But I keep it for consistency and because maybe people have the emoji-picker in a place where it's not immediately visible, so lazy-loading makes sense in that case.

@nolanlawson nolanlawson merged commit 73d7639 into master Nov 2, 2020
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.

None yet

1 participant