# How to prevent effects of async loading vs direct loading?

**URL:** <https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379>\
**Category:** Development\
**Created:** [29 Agosto, 2016 12:46 UTC](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379 "2016-08-29T12:46:58Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![broz](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/broz/32/61170_2.png) [@broz](https://meta.discourse.org/u/broz)\
**Post date:** [29 Agosto, 2016 12:46 UTC](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379/1 "2016-08-29T12:46:58Z")

</div>

I have a topic page: [Topic](https://forum.uppa.it/t/manovre-antisoffocamento-nel-bambino-fino-a-12-mesi/84/1)  
This page is particular, it has a `<div id="om-xddddihwxnstqcdk-holder"></div>` into the content, this div is converted into this result:

 ![](https://global.discourse-cdn.com/meta/original/3X/5/5/55af6781e2bdd3bff4bdb211a0224f3c319242f2.png)

The operation of converting the id into the form is made by a js script, that i embedded into the page.  
The script actually works perfectly, but **only when the page is loaded directly** ( **or when you reload it in the browser** )

If you try to access it through other pages of the forum like for example: [https://forum.uppa.it/c/medicina](https://forum.uppa.it/c/medicina) from here it is the first topic (Manovre antisoffocamento nel bambino fino a 12 mesi)  
**The script won’t be loaded**.

Than, when the page is loaded async. the result is that the js form is not displayed, but i need to fix this thing. Is there a way i can do that?

PS: the div id works because i created a plugin with the help of @cpradio

---

_[View the full topic](https://meta.discourse.org/t/how-to-prevent-effects-of-async-loading-vs-direct-loading/49379)._
