# Feedback on "on-discourse" javascript for setting up custom JS for each page?

**URL:** <https://meta.discourse.org/t/feedback-on-on-discourse-javascript-for-setting-up-custom-js-for-each-page/285647>\
**Category:** Development\
**Created:** [November 16, 2023, 3:48am UTC](https://meta.discourse.org/t/feedback-on-on-discourse-javascript-for-setting-up-custom-js-for-each-page/285647 "2023-11-16T03:48:54Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)\
**Post date:** [November 18, 2023, 7:45am UTC](https://meta.discourse.org/t/feedback-on-on-discourse-javascript-for-setting-up-custom-js-for-each-page/285647/8 "2023-11-18T07:45:50Z")

</div>

> [@Chris\_Dawson](#):
>
> The right way is to add the code using a plugin

Not true.

If you are not modifying the API (e.g. using 100% javascript) there is no need to use a Plugin which are more cumbersome to deploy and switch out.

If all you are doing is modifying or adding some JavaScript a Theme Component should suffice.

---

_[View the full topic](https://meta.discourse.org/t/feedback-on-on-discourse-javascript-for-setting-up-custom-js-for-each-page/285647)._
