Running script tags fetched with jsonp
问题 Edit: Resolved, see answer below. The problem I'm trying to solve is an ad loading script, that loads the ad code with jsonp and inserts it into the dom. Now sometimes the ad code will include javascript tags, and from some posts here on stackoverflow i got the idea that moving them to head of the document to make them run, which after some experimentation prompted me to ask this question: Appending scripts to head using javascript - weird behavior My question there was solved but the problem