# Theme component order of precedence

**URL:** <https://meta.discourse.org/t/theme-component-order-of-precedence/156615>\
**Category:** Development\
**Created:** [2 juli 2020 om 15:13 UTC](https://meta.discourse.org/t/theme-component-order-of-precedence/156615 "2020-07-02T15:13:16Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![guildai](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/guildai/32/248544_2.png) [@guildai](https://meta.discourse.org/u/guildai)\
**Post date:** [2 juli 2020 om 15:13 UTC](https://meta.discourse.org/t/theme-component-order-of-precedence/156615/1 "2020-07-02T15:13:16Z")

</div>

I notice that theme components appear to execute in order of installation. E.g. if I install A and then B, A scripts are included in generated pages before B.

Is this something I can rely on? Is there a view somewhere that shows this order? When viewing installed components, the component appear to be listed alphabetically.

I would prefer a way to explicitly run actions prior to a particular component. In my case, I want to run actions before the TOC component (related to [this topic](https://meta.discourse.org/t/156601)). From the [Ember docs](https://api.emberjs.com/ember/release/functions/@ember%2Frunloop/schedule) it looks like scheduled functions for a given queue are run in the order scheduled. This makes order-of-scheduling essential in my case.

---

_[View the full topic](https://meta.discourse.org/t/theme-component-order-of-precedence/156615)._
