@GottZ Sure !!! The function in the answer gets 'attributes' parameter. But I get a plain text that looks like that: "" I don't know what will be the parameters' names, so I can not use this function.
– JacobMar 08 '17 at 15:33
@Jacob The function in the answer is to create an element with a certain no of attributes. You have to pass in the attributes. How do you expect to create an element with attributes if you dont have those attributes?
– CraicerjackMar 08 '17 at 15:56
@Craicerjack I can append the line of text that I get into the head and the script will be loaded considering all the needed attributes (I don't have to know their names) e.g: head.append('"); --> This code will do fine but then I miss the loaded callback function.
– JacobMar 08 '17 at 16:01
1
upvoted since i think this answered the actual question quite well. due to jacobs comment here i just made my own little answer now.
– GottZMar 08 '17 at 16:31