4 ms·
Does someone know if there is a way to provide an alternate source for a script in case of failure of the main source ?
by Rexxar 18y ago
Does someone know if there is a way to provide an alternate source for a script in case of failure of the main source ?
- iigs 18y agoyou could probably include the script multiple times from different places, so long as you're not doing something within it as it loads (i.e. it's just functions) I don't know enough about JS to say, but you might be able to do if(!$loadedvar){document.whatever.write("<script src=\"...\" />"); }; as well