jailed
jailed copied to clipboard
Gets the correct address for the current script on browsers
The old way breaks if you load the script using html imports
Then the url is pointing at an invalid script.
Note: I do not currently have access to IE 11 so i have not been been able to test it in a browser that does not have currentscript as a field
http://caniuse.com/#search=currentScript