# DOM読み込み後にfunctionを実行する（didRender、didInsertElement、decorateCookedが機能しない）

**URL:** <https://meta.discourse.org/t/run-function-after-dom-has-loaded-didrender-didinsertelement-and-decoratecooked-are-not-working/214802>\
**Category:** Development\
**Created:** [2022 年 1 月 13 日午後 10:10 UTC](https://meta.discourse.org/t/run-function-after-dom-has-loaded-didrender-didinsertelement-and-decoratecooked-are-not-working/214802 "2022-01-13T22:10:04Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [2022 年 1 月 13 日午後 10:37 UTC](https://meta.discourse.org/t/run-function-after-dom-has-loaded-didrender-didinsertelement-and-decoratecooked-are-not-working/214802/2 "2022-01-13T22:37:32Z")

</div>

コンポーネントイベントで行う必要があると思います。そもそもなぜ気にするのですか？おそらく、ツリーの奥深くにあるコンポーネント、いわゆる「リーフ」の1つを選択してください。

シングルページアプリケーションでは、「DOMの完全ロード」はすべて動的であるため、あまり意味がありませんか？

要するに、あなたはすでに正しい軌道に乗っているようです。これはどのような問題を引き起こしていますか？なぜすべてのdivをロードする必要があるのですか？

「divを評価する」とは具体的にどういう意味ですか？おそらく、あなたがやろうとしていることには別の方法があるのではないでしょうか？

---

_[View the full topic](https://meta.discourse.org/t/run-function-after-dom-has-loaded-didrender-didinsertelement-and-decoratecooked-are-not-working/214802)._
