Skip to content

Instantly share code, notes, and snippets.

@PAEz
Created July 13, 2014 10:06
Show Gist options
  • Save PAEz/040ef8f637bd635254a7 to your computer and use it in GitHub Desktop.
Save PAEz/040ef8f637bd635254a7 to your computer and use it in GitHub Desktop.
evIl
var evIl = function(script) {
blob = new Blob([script], {
type: "application/javascript"
});
url = window.URL.createObjectURL(blob);
s = document.createElement('script');
s.src = url;
document.head.appendChild(s);
window.URL.revokeObjectURL(url);
s.parentElement.removeChild(s);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment