目前,每个 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 | 7 | 913 | 2020 年1 月 30 日 | |
| 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 | 637 | 2024 年5 月 9 日 | |
| Does Discourse consider integrate JsDelivr? | 3 | 762 | 2021 年10 月 8 日 | |
| Javascript Aggregation | 1 | 502 | 2020 年6 月 6 日 | |
| Question about web app loading | 2 | 95 | 2025 年4 月 25 日 |