Closed in-session closed 5 years ago
Yeah that ist right.
I already tested the combination of internal js with an external source. And with this, you could first load the resource and then add the inner HTML as callback, which will be called if source was loaded. But imho this is not a good approach, because its a little misuse of the script tag.
Another option is to add an ID to the script element created when cookies are accepted so that you can add an event listener to that element. On the other hand, you depend on the build and can get an error if the item is not available.
In summary, a good solution for the existing callback function after loading the exteral script would be really nice.
:+1:
Could it be that a combination of the both is not possible?