aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Main.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-03-11 07:18:33 +0300
committerRblSb <msrblsb@gmail.com>2020-03-11 07:18:33 +0300
commit43d38010b20ca15c1aa909a578afeb5edd8c8bd3 (patch)
tree6e2c944cd3a94cf15f55e560ff664bd0860db1b0 /src/client/Main.hx
parent1fb3e2de251f5f1d33a43cd13bc4ca6d3ae23c26 (diff)
Emotes lazy load
Diffstat (limited to 'src/client/Main.hx')
-rw-r--r--src/client/Main.hx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/client/Main.hx b/src/client/Main.hx
index 0db93a8..cee749b 100644
--- a/src/client/Main.hx
+++ b/src/client/Main.hx
@@ -454,7 +454,7 @@ class Main {
for (emote in config.emotes) {
final img = document.createImageElement();
img.className = "smile-preview";
- img.src = emote.image;
+ img.dataset.src = emote.image;
img.title = emote.name;
smilesWrap.appendChild(img);
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage