# Add javascript to a theme component

**URL:** <https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480>\
**Category:** Development\
**Created:** [May 23, 2020, 7:36pm UTC](https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480 "2020-05-23T19:36:57Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![sbernhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sbernhard/32/208186_2.png) [@sbernhard](https://meta.discourse.org/u/sbernhard)\
**Post date:** [May 23, 2020, 7:36pm UTC](https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480/1 "2020-05-23T19:36:58Z")

</div>

Is there a good way to add javascript (one file, minimized) to a theme component so that it can be used in common/header.html?

---

_[View the full topic](https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480)._
