External Javascript Timeout

Posted by yummm on Stack Overflow See other posts from Stack Overflow or by yummm
Published on 2010-03-08T19:34:10Z Indexed on 2010/03/08 19:36 UTC
Read the original article Hit count: 286

Filed under:

I have a number of tracking scripts and web services installed on my website and I noticed when one of the services goes down, it still tries to call the external javascript file hosted on a different server. In Firefox, Chrome and other new browsers, there doesn't seem to be any issues when one of the services go down. However, in IE7 and IE8, my pages don't load all the way and time out before everything is displayed. Is there any way to add a time out on these javascript calls to prevent them from breaking my pages when they go down?

© Stack Overflow or respective owner

Related posts about JavaScript