# 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:** 5

<div class="post-metadata">

**Author:** ![fzngagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fzngagan/32/259349_2.png) [@fzngagan](https://meta.discourse.org/u/fzngagan)\
**Post date:** [June 17, 2020, 4:08pm UTC](https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480/5 "2020-06-17T16:08:18Z")

</div>

Check `loadScript` in the codebase/meta for a systematic way to achieve this.

---

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