Only preload emoji after the window is fully loaded

This commit is contained in:
Scott Nonnenberg 2019-06-20 17:48:54 -07:00
parent 18d59bfa47
commit 102b93241c
3 changed files with 20 additions and 15 deletions

View file

@ -37,6 +37,7 @@
);
// Load these images now to ensure that they don't flicker on first use
window.Signal.EmojiLib.preloadImages();
const images = [];
function preload(list) {
for (let index = 0, max = list.length; index < max; index += 1) {