vue-twemoji-picker icon indicating copy to clipboard operation
vue-twemoji-picker copied to clipboard

Lazy Loading Emoji Imgs

Open quevlu opened this issue 5 years ago • 5 comments
trafficstars

Hello Kevin, how are you? Very thanks for the upgrades of the plugin. I have a question, is there any possibility to add support on lazy load?

quevlu avatar May 31 '20 01:05 quevlu

Hi there, Im fine, thank you! 

Lazy loading emoji datasets? Or lazy loading imgs?

kevinfaveri avatar May 31 '20 04:05 kevinfaveri

Hello, what is the difference between emoji datasets or lazy loading images? It's a good idea lazy load on images.

quevlu avatar May 31 '20 15:05 quevlu

I mean, what your pain is, what do you wish to solve?

For loading emoji dataset on demand, I think of something like: the user scrolls and emojis are being fetched as it scrolls on...

For lazy loading images: I think of using the new flag on img tags for lazy loading images.

kevinfaveri avatar May 31 '20 23:05 kevinfaveri

When I access to my app, there are many requests to get emojis and I didn't open the picker

image

Thanks a million for your help!

quevlu avatar May 31 '20 23:05 quevlu

This will be addressed together with https://github.com/kevinfaguiar/vue-twemoji-picker/issues/19. Currently thinking about using IntersectionObserver or now native lazy loading img support

kevinfaveri avatar Jul 17 '20 13:07 kevinfaveri