469,277 Members | 1,916 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,277 developers. It's quick & easy.

Timeout a Script

How would I stop the loading of a script if it is taking too long? My site references an external websites javascript and since their site was having problems processing the scripts, my site wouldn't complete loading the rest of the page. I would like to be able to give it a time limit to load and then scrap the script if it reaches the limit.

Thanks in advance for your help!
Feb 14 '12 #1
1 1264
gits
5,390 Expert Mod 4TB
you might load the external content through an AJAX call - but this would need to involve a Cross Domain Proxy due to the Same Origin Policy for JavaScript
Feb 16 '12 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

3 posts views Thread by Kenneth | last post: by
reply views Thread by John Silver | last post: by
9 posts views Thread by E Sullivan | last post: by
2 posts views Thread by Greg Decos | last post: by
1 post views Thread by Steve Caliendo | last post: by
4 posts views Thread by Lars Netzel | last post: by
8 posts views Thread by michal | last post: by
15 posts views Thread by Mikhail Kovalev | last post: by
3 posts views Thread by Sems | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by suresh191 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.