Append " – Jacob Mar 08 '17 at 13:55

  • from what text? – Craicerjack Mar 08 '17 at 14:30
  • 1
    @Jacob do you actually know how to javascript? – GottZ Mar 08 '17 at 15:30
  • @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. – Jacob Mar 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? – Craicerjack Mar 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. – Jacob Mar 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. – GottZ Mar 08 '17 at 16:31