Replies: 2 comments 1 reply
-
Thanks for opening a discussion thread on the topic. First of all, depending on your framework there are several ways to achieve managing and loading third party javascript bundles. Which framework you are using for building your component? React/Angular/VanillaJS/?... |
Beta Was this translation helpful? Give feedback.
-
User code (including preview and docs), is isolated in a separate iframe. I don't understand your use case. If you add a script to the head tag, it should execute. It doesn't matter which window it's attached to. Maybe open the composition in a new page? |
Beta Was this translation helpful? Give feedback.
-
Originally posted on #technical-questions Slack channel
if developing a map component that needs google maps script in the head, or any component as a matter of fact that requires some script in the head of the html document, does Bit give us a way to do that?
I tried to load the script to the head dynamically using DOM manipulation upon mount of the component but it mounts it to the iframe head and not the top level document head which I believe in this case where google maps api is searching for it and why it errors
cc: @itaymendel
Beta Was this translation helpful? Give feedback.
All reactions