122
Lemmy emojis is now available on addons.mozilla.org!
(addons.mozilla.org)
Banned? DM Wmill to appeal.
No anti-nautilism posts. See: Eco-fascism Primer
Slop posts go in c/slop. Don't post low-hanging fruit here.
It just takes a pretty long time for the emoji list to load on my end. Network's fine otherwise.
That's still not quite clear to me, I'm asking of course because I want to figure out if there is anything I can do to make it better.
The emoji list is downloaded when you click save in preferences, and has been saved into the browser storage once the date is changed. When you click on the icon to show the popup, it will fetch this list from local storage. If fetching the list from local storage takes a long time then it would probably take a long time for the emoji picker itself to show. The emoji picker will then begin to download the images for each of the emojies, this might take some time but once one has been downloaded it should be cached and hopefully be quick to display.
Which part seems to be the problem?
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
It's thousands of images some that are over 3mb which all must then be resized for display in the emojimart. It's not clear to me how the resizing is handled, I suppose it is inside browser.js which I can't make heads or tails of. Would go a long way to speeding things up if the emoji where resized on the server itself and failing that at least having them presized to the picker display size in the local storage (if they're not already).
The rezising is handled by the browser, just like any other image is resized when the height and width is different from the image itself.
browser.js is https://github.com/missive/emoji-mart
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
I made a local page with all hexbear emoji to test and it seems to render at the same speed whether they are at native resolution or all resized to 50x50 so I guess that's out.
If you disconnect internet and restart the browser the extension shows no emoji at all. Perhaps it is fetching them from the internet in spite of the local storage?
It does for me,
of course, you have to have downloaded the images so that they are cached first.
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
They are definitely downloaded first, they still show up after disconnection while the browser remains open and then disappear on browser restart. This is using librewolf, maybe it handles local cache differently than firefox?
I believe Librewolf disables cache.
ⓘ This user is suspected of being a cat. Please report any suspicious behavior.
I don't know if this is helpful but I have discovered that my page with every hexbear emoji which is snappy on librewolf is very slow on chromium and causes it to crash..
I'm assuming you are loading them directly from Hexbear and not hosting them elsewhere. In which case, Hexbear emotes just load slowly a lot of the time and there isn't anything you can do.
Hexbear is the bottleneck, if you found a way to locally cache the emojis I think that'd be ideal.