Current location: Hot Scripts Forums » General Web Coding » JavaScript » Stop script when site is down


Stop script when site is down

Reply
  #1 (permalink)  
Old 10-20-08, 05:26 AM
e-XPLoDeR's Avatar
e-XPLoDeR e-XPLoDeR is offline
Newbie Coder
 
Join Date: Sep 2006
Location: Ankara, Turkey
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Stop script when site is down

Hi,

I've an external JS code from another site in my web site. It's like:

<script type="text/javascript" src="http://www.domain.com/js/buton.js"></script>

But when "domain.com" is down, my web site opens very slowly due to this .js. How can I solve this problem? I have to use this .js from this external site.

Thanks from now.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #2 (permalink)  
Old 10-20-08, 07:08 AM
job0107's Avatar
job0107 job0107 is offline
Community Liaison
 
Join Date: Dec 2006
Location: Tacoma, Washington USA
Posts: 3,454
Thanks: 0
Thanked 140 Times in 137 Posts
Why don't you get the JS code from the external site and put it on your site?
__________________
Jerry Broughton
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #3 (permalink)  
Old 10-20-08, 11:02 AM
e-XPLoDeR's Avatar
e-XPLoDeR e-XPLoDeR is offline
Newbie Coder
 
Join Date: Sep 2006
Location: Ankara, Turkey
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Developers usually update the script. So this is not the solution. But thanks anyway.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #4 (permalink)  
Old 10-20-08, 11:36 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,074
Thanks: 11
Thanked 88 Times in 83 Posts
I don't know what this script does and when it's needed, but perhaps you could load the file dynamically when the browser is done loading the main page.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
  #5 (permalink)  
Old 10-20-08, 11:41 AM
e-XPLoDeR's Avatar
e-XPLoDeR e-XPLoDeR is offline
Newbie Coder
 
Join Date: Sep 2006
Location: Ankara, Turkey
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Thanks Nico,

I'll try this.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiShare on FacebookShare on Stumble UponShare on Twitter
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Site Registration Type Script Needed... jderosa3 Script Requests 0 12-19-06 10:49 AM
[ADVERTISING]PR4 Gaming related script site and forum Arrelius General Advertisements 0 11-04-05 07:48 PM
CGI problem - Script only allows a small number of digits in my customers site url??? Ireland Perl 6 10-09-05 08:09 PM
Is there any integrity of script rankings? webmaster@atmanager.com Hot Scripts Forum Questions, Suggestions and Feedback 17 08-06-04 01:12 AM


All times are GMT -5. The time now is 07:39 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.