How to make so that the script is loaded once in the page with the widget and iframes?

There is a page of a third-party site to add a widget (div + script tags). The script loads the html file where the tag ifram, adding this tag the script is running or connects the second time. tried to hang sobytia ifram tag, but then every time you change the src attribute of it (you can navigate to another page) the script re-runs.

what to do?
April 3rd 20 at 17:17
0 answer

Find more questions by tags JavaScriptHTMLiframe