Hello everyone,
I want to embed a widget from a third party. Unfortunately, the only thing I got was a code snippet of the following form:
<script src="https://somesite/widget-loader.js" async param1="value1" param2="value2"></script>
The issue is that the script tries to dynamically add DOM elements to the site, which does not seem to be allowed by Wix. There is also no placeholder
End result is that the widget fails to load. If I add the snippet as embedded Code in an iframe in the Wix website editor, the widget does not show up. However, if I then open the URL to the generated html file created by Wix on filesusr .com, and which contains said code, directly instead of via iframe embedding then the widget renders properly.
I have also already tried the Custom Element approach and generated the element within my Custom Element upon loading - no luck, still the widget does not show up, i.e. fails to alter the DOM of the final page.
So, is there a way to have a script-generated widget show up on the final/main Wix page?
Thx