Thanks for the quick response.
I tried your suggestion, but I couldn’t make it work, unfortunately.
But I see a difference though…
Script did not run if I place the condition “when page is loaded(entire) is yes” . Target element(reusable footer) stayed at the original position.
It seems like the script runs faster with regular page loaded condition, but the latter condition runs too late and failed to grab the element. Again, both of them works just fine if I run it with debug mode “slow” and “step by step”.
It must be very close to the solution, but I just can’t get it right on spot.
I encountered something similar recently when trying to insert a script. When placing the script static, it loaded fine. When it had to look up the script, the load was too quick so it was empty variable.
In the end I attached the script to the pages type that was loading and put the script in the pages header as opposed to a js workflow.
Not the cleanest of work around but it worked for me. Hopefully you can make some progress!
Can you share a public link of the editor reproducing the setup @rio. That will help figure out what’s going on. My hunch is this issue is because you’re using reusable elements and bubble doesn’t strictly follow the sequence of creation of reusables after page is initialized i.e. you reusable element may be created / run before the document object itself.