While appending a script tag programmatically after the head element,
head.appendChild(script_elm);
within this above script element, i am defining a variable. If i want to access the variable which is defining within the script tag, it does not work immediately after the head append. Why?