# Does Discourse consider integrate JsDelivr?

**URL:** https://meta.discourse.org/t/does-discourse-consider-integrate-jsdelivr/205188
**Category:** Support
**Created:** [October 4, 2021, 7:45pm UTC](https://meta.discourse.org/t/does-discourse-consider-integrate-jsdelivr/205188 "2021-10-04T19:45:11Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [October 4, 2021, 7:45pm UTC](https://meta.discourse.org/t/does-discourse-consider-integrate-jsdelivr/205188/1 "2021-10-04T19:45:11Z")

</div>

JsDelivr is a fantastic static source CDN provider, can you guys integrate it into Discourse so that user can use them easily?

---

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [October 7, 2021, 3:33pm UTC](https://meta.discourse.org/t/does-discourse-consider-integrate-jsdelivr/205188/2 "2021-10-07T15:33:03Z")

</div>

Should I move this topic to “plugin”?

---

<div class="post-metadata">

### Author: ![pmusaraj](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pmusaraj/32/119489_2.png) [@pmusaraj](https://meta.discourse.org/u/pmusaraj)
#### Post date: [October 7, 2021, 3:41pm UTC](https://meta.discourse.org/t/does-discourse-consider-integrate-jsdelivr/205188/3 "2021-10-07T15:41:40Z")

</div>

As a theme author, you can choose to use a CDN for scripts you add in your theme components. That works already, and there is no more we can do to “integrate” with a JS CDN provider.

See also: [Should I load third-party libraries from vendor or cdn?](https://meta.discourse.org/t/should-i-load-third-party-libraries-from-vendor-or-cdn/205357)

---

<div class="post-metadata">

### Author: ![tachibanalolo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tachibanalolo/32/233762_2.png) [@tachibanalolo](https://meta.discourse.org/u/tachibanalolo)
#### Post date: [October 8, 2021, 8:21am UTC](https://meta.discourse.org/t/does-discourse-consider-integrate-jsdelivr/205188/4 "2021-10-08T08:21:26Z")

</div>

What I want is this:

> [@How to collect all static assets (js, css) used by discourse](https://meta.discourse.org/t/how-to-collect-all-static-assets-js-css-used-by-discourse/149319):
>
> I’m trying to setup CDN for my forum. since China banned [Fastly](http://www.fastly.com/) and lots of CDN servers, so I can’t use them to speed up my forum. After doing some research, I turn to Jsdelivr, which can serve static files from npm or Github repo. I know I can use DISCOURSE\_CDN\_URL in app.yml to set up the URL. But before that, I have to collect all the static files (js, CSS) from my forum then upload it to Github so Jsdelivr can access them. I found the static files actually located inside the docker containe…

He collect all the assets and then publish it to GitHub so that JsDelivr or cdnjs or whatever static CDN can use it.

I just want to ask is there a simple way that allows user to collect all the assets? Because I discover that not all the assets are in the public folder. Some js/css seems used from somewhere else.
