I'm using the getScript()
JQuery method but could really do with adding a timeout. Some scripts don't come back as failed for a good 6-8 seconds, which is too long.
Is this possible?
I've searched a bit and no solutions have been forthcoming.
Something like:
$.getScript(a + "/myspeed/MySpeedServer/mss/js")
.done(function() {
//do stuff
})
.fail(function() {
//do stuff
});
.timeout(2000)