# 在 Discourse 中，所有 js 和 css 文件都是单独呈现的。为什么不将它们合并成一两个文件来提供呢？

**URL:** <https://meta.discourse.org/t/in-discourse-all-js-and-css-files-are-presented-separately-why-dont-we-combine-them-into-one-or-two-files-and-present-them/306793>\
**Category:** Development\
**Tags:** css\
**Created:** [2024 年5 月 5 日 12:16 UTC](https://meta.discourse.org/t/in-discourse-all-js-and-css-files-are-presented-separately-why-dont-we-combine-them-into-one-or-two-files-and-present-them/306793 "2024-05-05T12:16:44Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

作者： ![Ed\_S](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/ed_s/32/134015_2.png) [@Ed\_S](https://meta.discourse.org/u/Ed_S)\
发布日期： [2024 年5 月 5 日 20:45 UTC](https://meta.discourse.org/t/in-discourse-all-js-and-css-files-are-presented-separately-why-dont-we-combine-them-into-one-or-two-files-and-present-them/306793/7 "2024-05-05T20:45:29Z")

</div>

> [@Jagster](#):
>
> 那些实验室测试是另一个世界

我认为其中一部分是因为他们进行了冷启动并且必须加载所有资源。大多数时候，论坛用户会在他们的浏览器中缓存这些资源。

我确实怀疑加载时间可能有所改进，也许其中一些实验室测试的技巧值得跟进。

---

_[View the full topic](https://meta.discourse.org/t/in-discourse-all-js-and-css-files-are-presented-separately-why-dont-we-combine-them-into-one-or-two-files-and-present-them/306793)._
