PDA

View Full Version : Page hangs when remote JavaScript accessed


HiMyNameIs
08-30-03, 06:05 PM
We load JavaScript from a remote server with code similar to:

<script language="JavaScript" src="http://www.remoteserver.com/javascript.js"></script>

The problem is that the entire page on which the above line exists hangs when remoteserver.com is down. Does anyone have any ideas on preventing this hang? It doesn't have to be graceful necessarily, just a way to ensure that the rest of the page will display regardless of whether remoteserver.com is down.

Thank you!