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

<div class="post-metadata">

**Author:** ![Amethi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/amethi/32/88690_2.png) [@Amethi](https://meta.discourse.org/u/Amethi)\
**Post date:** [June 17, 2020, 12:19pm UTC](https://meta.discourse.org/t/add-javascript-to-a-theme-component/152480/4 "2020-06-17T12:19:39Z")

</div>

Oh, think I answered my own question via [Content security policy &nbsp;|&nbsp; Articles &nbsp;|&nbsp; web.dev](https://www.html5rocks.com/en/tutorials/security/content-security-policy/#inline-code-considered-harmful)

---

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