JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old June 9th, 2003, 04:30 PM
mrjuggernaut mrjuggernaut is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 24 mrjuggernaut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 37 m 40 sec
Reputation Power: 0
Load javascript last?

In my html I am currently calling an external javascript from another site. It runs a small text ad at the top of the page. But the external site does not always load due to server issues, etc. When the javascript is down, it delays the loading time for the entire page a few seconds. Is there a way that I can load this javascript after all other elements have been loaded so that the load time for the page will not be jeopardized? Thanks.

Reply With Quote
  #2  
Old June 9th, 2003, 04:53 PM
adios adios is offline
Senior Citizen
Dev Shed Regular (2000 - 2499 posts)
 
Join Date: Jan 2001
Location: leftcoast
Posts: 2,019 adios User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 11
No way to answer that without seeing the script itself. It likely outputs via document.write(), in which case its placement in the document is critical - it'll stream its HTML wherever the tagpair is embedded. JS files download in series: parsing stops until they arrive, and are processed. Probably a solution somewhere.

Reply With Quote
  #3  
Old June 9th, 2003, 04:55 PM
mrjuggernaut mrjuggernaut is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2003
Posts: 24 mrjuggernaut User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 37 m 40 sec
Reputation Power: 0
Here's the script. It is run throught a script src call in the middle of the html code:

<!--
<TABLE WIDTH="285" BORDER="0" CELLSPACING="0" CELLPADDING="1">
<TR>
<TD WIDTH="275" BGCOLOR="#003c77">
<TABLE WIDTH="275" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD WIDTH="100%" BGCOLOR="#d5eaff">
<P><script src="http://www.textads.biz/getNextAd.jsp?siteref=30a72f1f639dbb792673a10bc96a8a40&adNum=1"></script></TD>
</TR>
</TABLE><TABLE WIDTH="275" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD WIDTH="100%" BGCOLOR="#d5eaff">
<P ALIGN=RIGHT><FONT SIZE="-2" FACE="Arial">>> <A HREF="http://www.noticetothepublic.com/adinfo.html" CLASS="nav">Buy
Your Own Text Ad</A></FONT></TD>
</TR>
</TABLE></TD>
<TD WIDTH="10"></TD>
</TR>
</TABLE>
//-->

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Load javascript last?


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump



 Free IT White Papers!
 
How to Present Effectively Online
This white paper offers practical and actionable advice on the key steps that any presenter should consider as they plan and execute a Webinar or online meeting.

 
Open Source Security Myths
Open Source Software (OSS) is computer software whose source code is available to the general public with relaxed or non-existent intellectual property restrictions (or arrangement such as the public domain), and is usually developed with the input of many contributors.

 
Power and Cooling Capacity Management for Data Centers
This paper describes the principles for achieving power and cooling capacity management.

 
Scalable, Fault-Tolerant NAS for Oracle - The Next Generation
For several years NAS has been evolving as a storage alternative for Oracle databases, and for good reason: NAS is quite often the simplest, most cost-effective storage approach for Oracle. Learn about the benefits that HP's approach to scalable NAS brings to Oracle environments in this comprehensive white paper.

 
Understanding Web Application Security Challenges
This white paper discusses many common threats and preventive measures for Web application security, and explains what you can do to help protect your organization.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT