Javascript By-pass if slow to load

I am currently using a piece of Javascript on a page to call another server/host for a RSS news feed. The other server (call it [url removed, login to view]) has had some connectivity problems lately. Therefore, the piece javascript that calls the slow server has been bogging down the page load. The feed the Javascript is important but not a critical part of the page functionality. Below is the piece of javascript code.


<script language="javascript" src="[url removed, login to view];t=1&url=http%3A%2F%[url removed, login to view]%2Fnews%3Fsvnum%3D10%26as_scoring%3Dr%26hl%3Den%26ned%3Dus%26ie%3DUTF-8%26q%3DMilwaukee%2BBrewers%26output%3Drss&n=10&w=368&ifbg=000000&border=FF0000&textbg=F0F0F0&d=1"> </script>


Basically, I want to add something to this code so that if the call to the other server ([url removed, login to view]) takes too long then just bypass the script all together...but allow the rest of the page to load. I'd like to be able to specify how long to wait for the other server to respond in either seconds or mili-seconds. I'm guessing this is fairly simple.

Please respond quckly as I need this done asap.

Beceriler: Javascript

Daha fazlasını gör: ff0000, javascript pass slow load, so slow, if js, server load, pass google, net javascript, load php, border, bypass url javascript, php page load, javascript url php, load page javascript, script src, google javascript code, amp javascript, call url script, http javascript, pass page, javascript done, page javascript, javascript rest call simple, javascript amp, script call url, rest call javascript

İşveren Hakkında:
( 0 değerlendirme ) orlando, United States

Proje NO: #135523

Bu iş için 5 freelancer ortalamada $71 teklif veriyor


I can help you. The thing is not as easy as you think.

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(26 Değerlendirme)

Hi , I am intrested in it .i can do it ASAP. regards,

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(2 Değerlendirme)

Hi, I would be interested in taking up this Project. Let me know if you are interested in working with me. Regards Anand

in %bids___i_period_sub_35% gün içinde75%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)

hello. please more information. regards

1 gün içinde %bids___i_sum_sub_32%%project_currencyDetails_sign_sub_33% USD
(0 Değerlendirme)

choose to complete you task

in %bids___i_period_sub_35% gün içinde75%project_currencyDetails_sign_sub_37% %project_currencyDetails_code_sub_38%
(0 Değerlendirme)