Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

9
  • you can also create a method which can handle add/remove for you of script tag by id, sorry I didn't show above code Commented Oct 17, 2022 at 7:18
  • how do I add these elements on the <script> when appending? (data-jsd-embedded data-base-url="" data-key="") Commented Oct 17, 2022 at 7:30
  • script.setAttribute('data-jsd-embedded', ''); script.setAttribute('data-base-url', ''); script.setAttribute('data-key', ''); Commented Oct 17, 2022 at 7:36
  • I tried it but it doesn't work Commented Oct 17, 2022 at 7:50
  • it was working for me give me a moment I will give you stackblitz link Commented Oct 17, 2022 at 7:54