# What controls the order of execution for Theme components' j/s?

**URL:** <https://meta.discourse.org/t/what-controls-the-order-of-execution-for-theme-components-j-s/190410>\
**Category:** Development\
**Created:** [May 14, 2021, 12:17pm UTC](https://meta.discourse.org/t/what-controls-the-order-of-execution-for-theme-components-j-s/190410 "2021-05-14T12:17:05Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![riking](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/riking/32/170938_2.png) [@riking](https://meta.discourse.org/u/riking)\
**Post date:** [May 26, 2021, 2:19pm UTC](https://meta.discourse.org/t/what-controls-the-order-of-execution-for-theme-components-j-s/190410/3 "2021-05-26T14:19:31Z")

</div>

Note that DiscoTOC only runs on post contents - if you’re inserting those elements outside posts, it won’t see them.

I don’t think we’ve needed to define JS execution order yet.

---

_[View the full topic](https://meta.discourse.org/t/what-controls-the-order-of-execution-for-theme-components-j-s/190410)._
