Embedding script with timeout in case server goes down

Posted by vsync on Stack Overflow See other posts from Stack Overflow or by vsync
Published on 2010-06-06T12:48:54Z Indexed on 2010/06/06 12:52 UTC
Read the original article Hit count: 190

Filed under:
|
|

I need a way to make sure my script won't block the viewed page,
if the server serving the script is down (port 80 is blocked for some reason).

Currently when I test it and take down the server (Apache), or close the firewall,
I see in the browser that it is trying to load the resource (script in that case), without
success for long seconds, until it aborts.

Is there a nice way to get past this issue?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html