# 允许通过镜像站点加载预编译的 JS 资源

**URL:** https://meta.discourse.org/t/allow-precompiled-js-resources-to-be-loaded-via-mirror-sites/390230
**Category:** Feature
**Created:** [2025年十二月3日 01:04 UTC](https://meta.discourse.org/t/allow-precompiled-js-resources-to-be-loaded-via-mirror-sites/390230 "2025-12-03T01:04:49Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Editor0732](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/editor0732/32/492698_2.png) [@Editor0732](https://meta.discourse.org/u/Editor0732)
#### Post date: [2025年十二月3日 01:04 UTC](https://meta.discourse.org/t/allow-precompiled-js-resources-to-be-loaded-via-mirror-sites/390230/1 "2025-12-03T01:04:49Z")

</div>

在 `web.china.template.yml` 中，我们可以通过 GitHub 的镜像网站加载插件。  
但是预编译的 JS 资源是通过

> <https://github.com/discourse/discourse/blob/a65e22476bc6d02a107d3fca2ae5ea9f05a9f4bc/script/assemble_ember_build.rb#L16C1-L16C62>

加载的。  
**在中国网络环境下，有时难以连接到 [get.discourse.org](http://get.discourse.org)。**  
所以我们是否可以允许通过镜像站点加载预编译的 JS 资源？

---

<div class="post-metadata">

### Author: ![pangbo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pangbo/32/538562_2.png) [@pangbo](https://meta.discourse.org/u/pangbo)
#### Post date: [2025年十二月3日 11:35 UTC](https://meta.discourse.org/t/allow-precompiled-js-resources-to-be-loaded-via-mirror-sites/390230/2 "2025-12-03T11:35:28Z")

</div>

[discourse.org](http://discourse.org) 的所有子域名在中国大陆内都表现出无缝连接。问题出在 [get.discourse.org](http://get.discourse.org)，它只是重定向到 GitHub。因此，根本问题在于 GitHub 的连接性。

---

<div class="post-metadata">

### Author: ![Editor0732](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/editor0732/32/492698_2.png) [@Editor0732](https://meta.discourse.org/u/Editor0732)
#### Post date: [2025年十二月3日 18:41 UTC](https://meta.discourse.org/t/allow-precompiled-js-resources-to-be-loaded-via-mirror-sites/390230/3 "2025-12-03T18:41:04Z")

</div>

是的，所以我希望像从 GitHub 镜像站点加载插件一样，加载预编译的 JS 资源。
