141
rated 0 times
[
147]
[
6]
/ answers: 1 / hits: 53518
/ 15 Years ago, thu, april 2, 2009, 12:00:00
I'm pretty sure the answer is no, but thought I'd ask anyway.
If my site references a scripted named whatever.js, is it possible to get whatever.js from within that script? Like:
var scriptName = ???
if (typeof jQuery !== function) {
throw new Error(
jQuery's script needs to be loaded before +
scriptName + . Check the <script> tag order.);
}
Probably more trouble than it's worth for dependency checking, but what the hell.
More From » html