# How to increase site speed

**URL:** <https://meta.discourse.org/t/how-to-increase-site-speed/60791>\
**Category:** Self-hosting\
**Created:** [2017年四月11日 16:42 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791 "2017-04-11T16:42:21Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![EducatorWaji](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/educatorwaji/32/66699_2.png) [@EducatorWaji](https://meta.discourse.org/u/EducatorWaji)\
**Post date:** [2017年四月17日 18:40 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/21 "2017-04-17T18:40:52Z")

</div>

![](https://global.discourse-cdn.com/meta/original/3X/f/0/f05d65dd3f4c16b65505b538d0c3fa5ea6b2f6d8.png)

Seriously something is wrong with the image loading, I got a very quick client side loading speed in mozilla (2 mbps link) after disabling image loading

---

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [2017年四月17日 18:55 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/22 "2017-04-17T18:55:11Z")

</div>

we use cloudflare.

@EducatorWaji I don’t get it! the site doesn’t load after 23 min. plus the site size is more or less the same (only 500kb different) with or without the images. as [this](https://meta.discourse.org/t/topic-list-previews/41630/566) reply show.

i’m more or less confused now! 😲 after disabling topic preview only avatars + js files remains. but which js file? no other js is active on homepage (rather than ga).

---

<div class="post-metadata">

**Author:** ![EducatorWaji](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/educatorwaji/32/66699_2.png) [@EducatorWaji](https://meta.discourse.org/u/EducatorWaji)\
**Post date:** [2017年四月17日 19:01 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/23 "2017-04-17T19:01:40Z")

</div>

Tense not! Don’t take my inputs as any major thing to consider.

What is that .js script loading from [cdn.mathjax.org](http://cdn.mathjax.org) doing?. And for your info, MathJax is closing down its CDN by this april 30th. Whatever file you are loading from from mathjax will not be available after april 30th

---

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [2017年四月17日 19:36 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/24 "2017-04-17T19:36:32Z")

</div>

that’s the mathjs plugin:

[https://meta.discourse.org/t/mathjax-plugin-supports-math-notation-using-latex/12826](https://meta.discourse.org/t/mathjax-plugin-supports-math-notation-using-latex/12826)

nothing in the latest page though from this plugin.

---

<div class="post-metadata">

**Author:** ![EducatorWaji](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/educatorwaji/32/66699_2.png) [@EducatorWaji](https://meta.discourse.org/u/EducatorWaji)\
**Post date:** [2017年四月17日 19:44 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/25 "2017-04-17T19:44:32Z")

</div>

Yes! No use of the MathJs plugin. But, it still loads it in every page. I guess the lower speed is directly linked with the huge number of parallel image downloads. Disabling images gives good speeds.

---

<div class="post-metadata">

**Author:** ![Pad\_Pors](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pad_pors/32/52016_2.png) [@Pad\_Pors](https://meta.discourse.org/u/Pad_Pors)\
**Post date:** [2017年四月17日 19:48 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/26 "2017-04-17T19:48:47Z")

</div>

let me see if I got you correctly: do you mean even if I disable the topic list preview plugin, the site still loads all the images of the first few topics?

asking since when I disable the plugin, no such a huge change happens in the page size as well as the speed.

---

<div class="post-metadata">

**Author:** ![EducatorWaji](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/educatorwaji/32/66699_2.png) [@EducatorWaji](https://meta.discourse.org/u/EducatorWaji)\
**Post date:** [2017年四月17日 19:53 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/27 "2017-04-17T19:53:16Z")

</div>

For that, I may have to test it myself. I will test it myself and get back to you. But, what I meant was force disabling every possible images in the site(Including logo, avatars and etc) gave me a very smooth loading time in your discourse. Which in someway pointing to the fact that the slow loading speed has something related with images.

Anyway, I will try it myself and will get back to you.

---

<div class="post-metadata">

**Author:** ![Alavi1412](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alavi1412/32/67721_2.png) [@Alavi1412](https://meta.discourse.org/u/Alavi1412)\
**Post date:** [2017年四月19日 15:35 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/28 "2017-04-19T15:35:33Z")

</div>

@angus  
I think there is a problem with topic list preview.  
When I disable the thumbnail at site setting, my transfer decreases about 500KB, But when I completely remove this plugin the transfer decreases 1.4MB, What is this plugin doing? Why the transfer decreases so much when I delete this plugin but the disabled thumbnail reduce the transfer just 500KB,  
I thought the transfer for this plugin is images but I understood the transfer is for unknown requests.

---

<div class="post-metadata">

**Author:** ![EducatorWaji](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/educatorwaji/32/66699_2.png) [@EducatorWaji](https://meta.discourse.org/u/EducatorWaji)\
**Post date:** [2017年四月19日 15:50 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/29 "2017-04-19T15:50:56Z")

</div>

So my assumptions are pretty accurate! The plugin loads a lot images when topic list preview plugin is activated.

Whatever I write below are my assumptions, feel free to reply and correct me If I am wrong.

- The plugins pulls the first image from the topics even while it is disabled, unless the plugin in fully removed.
- After you have removed the plugin, The discourse doesn’t load the first image from the topic anymore. Hence much less Kilo Bytes of data is loaded

---

<div class="post-metadata">

**Author:** ![Anil\_Gupta](https://avatars.discourse-cdn.com/v4/letter/a/58956e/32.png) [@Anil\_Gupta](https://meta.discourse.org/u/Anil_Gupta)\
**Post date:** [2018年一月9日 23:47 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/30 "2018-01-09T23:47:55Z")

</div>

Hi,  
I reached this thread looking for improving performance and found that [meta.discourse.org](http://meta.discourse.org) does have a huge payload too:

1 single JS file stands out with size 1.69MB

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/e/9e4593c100805d0670452a9388f71d389f0c08b4.png)

The same application js file is loaded on my discourse install too:

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

I tried a fresh install of discourse with no extra plugins and this file is still there with same 1.69 MB size.

Is there a way to reduce the size of this file, if we going by your recommendations to keep the page size below 1 MB?

---

<div class="post-metadata">

**Author:** ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)\
**Post date:** [2018年一月9日 23:59 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/31 "2018-01-09T23:59:27Z")

</div>

Look more closely, the actual **transmitted size** is 238kb

 ![image](https://global.discourse-cdn.com/meta/original/3X/9/9/99bcb54280927bd4660d980297b6cff91cf0fd4b.jpg)

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)\
**Post date:** [2023年八月2日 09:49 UTC](https://meta.discourse.org/t/how-to-increase-site-speed/60791/34 "2023-08-02T09:49:37Z")

</div>



[上一頁](https://meta.discourse.org/t/how-to-increase-site-speed/60791.md?page=1)
