# Javascript assets in a theme component

**URL:** <https://meta.discourse.org/t/javascript-assets-in-a-theme-component/189109>\
**Category:** Development\
**Created:** [May 4, 2021, 8:19am UTC](https://meta.discourse.org/t/javascript-assets-in-a-theme-component/189109 "2021-05-04T08:19:44Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Hubbe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hubbe/32/212629_2.png) [@Hubbe](https://meta.discourse.org/u/Hubbe)\
**Post date:** [May 5, 2021, 2:52am UTC](https://meta.discourse.org/t/javascript-assets-in-a-theme-component/189109/5 "2021-05-05T02:52:10Z")

</div>

Assets names seem to only be accessible as variables, and the real names are long and complicated numbers, so that won’t work either.  
It kind of seems like there is no way to do this as a component right now, so I’m going to sideload the JS files through nginx and access them that way for now. Probably means this component will only work for me unfortunately.

---

_[View the full topic](https://meta.discourse.org/t/javascript-assets-in-a-theme-component/189109)._
