I have a script inside a content embed but it doesnt seem to work
I have a script inside a content embed but it doesnt seem to work
At a glance
The community members are discussing an issue with a content embed not supporting scripts. The issue seems to work in the app but not on the live site. They try various approaches, including using a HTML embed instead, and testing with different scripts and methods. Eventually, they discover that the issue was caused by a third-party script, likely Hotjar, that was causing a re-render of the HTML. The community members were able to resolve the issue by removing the third-party script.
Not super clear where to find what, link to live, also why your script is inside the content embed which is for embedding external html coming from 3rd party
I recall at one point we had an issue with dom content event not getting called on dynamic pages. I'll start a test there to see if that was addressed. thought it was
@AdamOBryn can you drop a console log first thing in there to see if that prints? I'd also log one of the elements and lastly a log in the event listener
i wonder if any of the custom head code is messing with it. possibly that head code is only allowed to run on your domains so its not impacting my clone?