# \`before-script-load\` にコンテンツを挿入する方法は？

**URL:** <https://meta.discourse.org/t/how-to-inject-content-into-before-script-load/265989>\
**Category:** Development\
**Created:** [2023 年 5 月 23 日午後 9:35 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:** 2

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2023 年 5 月 23 日午後 11:46 UTC](https://meta.discourse.org/t/how-to-inject-content-into-before-script-load/265989/2 "2023-05-23T23:46:23Z")

</div>

実行順序はこの正確な場所（実行順序）で実行する必要がありますか？ ブラウザは、それらの順序に関係なく、すべてのheadタグスクリプトをロードします。 `admin-customize-themes` のテーマの編集CSS/HTMLセクションに移動して、headタグエリアにスクリプトを追加できます。テーマがホストされていてカスタマイズが許可されていない場合は、テーマコンポーネント（またはテーマのリポジトリのheadタグファイル）で追加できます。

---

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