# 如何加快Discourse表情符号的速度

**URL:** https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821
**Category:** Support
**Created:** [2018年五月5日 09:16 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821 "2018-05-05T09:16:49Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [2018年五月5日 09:16 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/1 "2018-05-05T09:16:49Z")

</div>

Hi,

I am sure, my Internet is not slow. It’s 5.3 Mbps. Still, I notice that Emoji loads very slow. It takes ages to load all icons. It would be great if we can preload it somehow.

 ![image](https://global.discourse-cdn.com/meta/original/3X/c/b/cbabf39260af5684d2b0990114b5988057c2683c.png)

Thanks & Regards,  
Gulshan

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年五月5日 10:42 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/4 "2018-05-05T10:42:08Z")

</div>

As far as I know, all emojis are lazy loaded.  
Have you checked your browser console’s network tab to see if it is discourse or your web server is the culprit?

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [2018年五月5日 11:35 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/5 "2018-05-05T11:35:44Z")

</div>

I am not saying, it doesn’t load. It loads, but very slowly till you would already decide I don’t want to use emoji now. Because, searching for right emoji becomes difficult.

I will try to debug Console to see if there is any issue.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年五月5日 11:37 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/6 "2018-05-05T11:37:02Z")

</div>

I’ve noticed that issue on your forum but never here on meta or on my own forum, looks like it’s very specific to you.

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [2018年五月5日 11:37 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/7 "2018-05-05T11:37:53Z")

</div>

Maybe! I am not using Cloudflare or any third party even. I am more worried now when you already confirmed me.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [2018年五月5日 11:40 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/8 "2018-05-05T11:40:31Z")

</div>

That very much depends on available speed at your server and CDN. Have you tried configuring CDN on your forum yet?

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [2018年五月5日 12:06 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/9 "2018-05-05T12:06:05Z")

</div>

I reloaded the forum web page, it fixed the problem instantly.

CDN would be helpful for delivering static content for new visitors only. For rest, it would be already cached.

 ![image](https://global.discourse-cdn.com/meta/original/3X/1/4/14b995bb930253fc93f88bd5fe9f8f763c47a59e.png)

I am skeptical about using CDN. I tried it, it was not huge difference.

I can try one more time to find out data result.

As a matter of Interactive session, for example if someone drop a new gif in message, I am afraid it can harm more, because the MISS response would be usually slower than the origin. Isn’t?

As per main audience location, I would prefer improving core server.

---

<div class="post-metadata">

### Author: ![Gulshan\_Kumar](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gulshan_kumar/32/119562_2.png) [@Gulshan\_Kumar](https://meta.discourse.org/u/Gulshan_Kumar)
#### Post date: [2018年五月5日 12:14 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/10 "2018-05-05T12:14:05Z")

</div>

Can you please refer to this video, this is what exactly I am facing.

[https://www.useloom.com/share/357e7637517346cdb6b7242e93606c04](https://www.useloom.com/share/357e7637517346cdb6b7242e93606c04)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [2018年五月7日 01:29 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/11 "2018-05-07T01:29:58Z")

</div>

I can see the issue this is actually not network related.

I fixed it per:

[https://github.com/discourse/discourse/commit/911f898a2344d2689cc2913f37c836875f73cc7d](https://github.com/discourse/discourse/commit/911f898a2344d2689cc2913f37c836875f73cc7d)

What was happening is that Chrome likes “deferring” timers if they start taking too long.

- We were batching “loading” up emojis
- At some point chrome detected that our batches were taking more than 16ms
- Chrome gets angry and says “no setTimer for you for 3 seconds or more”

This is an internal issue in Chrome we need to report to them, but in the meantime I amended it so we use animation frames which are designed with this in mind.

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [2024年六月8日 12:37 UTC](https://meta.discourse.org/t/how-to-speed-up-discourse-emoji/86821/12 "2024-06-08T12:37:33Z")

</div>

此主题已在 2226 天后自动关闭。不再允许回复。
