Hey Armin,
Thanks again for your help!
It turns out the script was waiting for window.load to initialize which seems to fire a bit early on Laytheme, so I set-up a different custom event and listened for that instead.
Is Laytheme seeing the shortcode and then forcing a page refresh to improve compatibility with short codes in general?
yes
Are there any links to information you can share that might help me try different workarounds?
no
i don't think there is a workaround
Dear @sebastianpetrov
de nada. I am here to help.
Yes. It is the details.
Sometimes it is good to copy the CUSTOM CODE into an editor to check the syntax.
Best!
Marius