目前,每个 Discourse 插件似乎都会至少添加一个 JS/CSS 请求,导致每页的请求数量大幅增加。例如,首页大约有:- 30 个 JS 文件(script src=“…”)- 20 个 CSS 文件(link rel=“stylesheet”)Discourse 是否有选项(或许通过 app.yml)来合并这些资源,以减少所需的网络请求数量?
OlehKuryshko
(Oleh Kuryshko)
1
Falco
(Falco)
2
不,没有这样的选项,因为 HTTP/2 使其变得不必要。
相關主題
| 話題 | 回覆 | 觀看 | 活動 | |
|---|---|---|---|---|
| Optimise speed - js and images | 6 | 972 | 2019年十二月31日 | |
| In Discourse, all js and css files are presented separately. Why don't we combine them into one or two files and present them? | 10 | 720 | 2024年五月9日 | |
| Does Discourse consider integrate JsDelivr? | 3 | 825 | 2021年十月8日 | |
| Javascript Aggregation | 1 | 530 | 2020年六月6日 | |
| Question about web app loading | 1 | 131 | 2025年三月25日 |