By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,695 Members | 1,580 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,695 IT Pros & Developers. It's quick & easy.

Timeout a Script

P: 1
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
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,390
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.