# How to inject content into \`before-script-load\`?

**URL:** https://meta.discourse.org/t/how-to-inject-content-into-before-script-load/265989
**Category:** Development
**Created:** [May 23, 2023, 9:35pm UTC](https://meta.discourse.org/t/how-to-inject-content-into-before-script-load/265989 "2023-05-23T21:35:51Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [May 24, 2023, 12:34am UTC](https://meta.discourse.org/t/how-to-inject-content-into-before-script-load/265989/4 "2023-05-24T00:34:30Z")

</div>

I think you want to put it in an initializer.

Have a look at [Split up theme Javascript into multiple files](https://meta.discourse.org/t/split-up-theme-javascript-into-multiple-files/119369)

But Falco knows lots more about that than I do.

---

_[View the full topic](https://meta.discourse.org/t/how-to-inject-content-into-before-script-load/265989)._
