Let's imagine a web page page needing to load a javascript file (i.e. my.js
). Is it possible to organize the following fail-over loading sequence?
- If server A is up, load
my.js
from server A. - Else, if server B is up, load
my.js
from server B. - Else, if server C is up, load
my.js
from server C. - ...
If yes, how to proceed? Thanks.
P.S.: I have just found yepnopejs. Does anyone recommend it?