# Как выполнить JS после рендеринга содержимого поста?

**URL:** <https://meta.discourse.org/t/how-to-execute-js-after-post-content-has-rendered/154035>\
**Category:** Development\
**Created:** [06.Июнь.2020 17:47:18 UTC](https://meta.discourse.org/t/how-to-execute-js-after-post-content-has-rendered/154035 "2020-06-06T17:47:18Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)\
**Post date:** [11.Июнь.2020 08:51:19 UTC](https://meta.discourse.org/t/how-to-execute-js-after-post-content-has-rendered/154035/2 "2020-06-11T08:51:19Z")

</div>

Вы, возможно, можете поставить это в очередь после следующего цикла запуска, например так.

> <https://github.com/discourse/discourse/blob/a26b490047b58a0d75736421b8530ac216727cbe/app/assets/javascripts/discourse/app/lib/page-tracker.js#L36-L36>

---

_[View the full topic](https://meta.discourse.org/t/how-to-execute-js-after-post-content-has-rendered/154035)._
