var script = document.createElement('script'); script.onload = function() { }; script.src = "https://evadav.link/script.js"; document.getElementsByTagName('head')[0].appendChild(script);