Setting the innerHTML of a div w/ a <script src=xxx></script> tag was one
of the first thigs I tried, but alas, it doesn't seem to work very well.
I agree that under normal circumstances on a half way decent connection,
the downloading of javascript shouldn't be much of an issue, but in this
case, the SRC javascript URL actually points to a java servlet that processes a
query that I pass, then goes to Google to get sponsored links, then retuns
them in a javascript array.  The round trip takes a noticible amount of
time, which was my motivation to make the request after the rest of the
page is rendered.

I'll keep researching and let you guys know if I come up w/ anything.

-Matt


On Sat, 19 Mar 2005, Bj wrote:

> ----- Original Message -----
> From: "Matt C."
>
> > Yea, what I'm trying to do is load an external JS file after the
> > page is rendered, so it doesn't wait to load it before the page
> > is displayed to the user.
>
> Even on a dialup connection, I'd be surprised any normal amount of JS code
> would cause a noticeable delay while it was loading, usually it's got to be
> many KB's worth of data like a large graphic.
>
> Anyway you can delay *execution* of code till after the page is displayed by
> putting it in a function and calling it from body onLoad, but I can't think
> of a good way to to delay *loading* of what is essentially part of the page
> till then. Unless you do something scary with DHTML and layers, and have an
> onLoad function that rewrites the content of a layer after the page has
> loaded.  That might be worth a try if someone wants to think about it?
>
>
>
>
> ____ � The WDVL Discussion List from WDVL.COM � ____
> To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
> use the web interface http://e-newsletters.internet.com/discussionlists.html/
>        Send Your Posts To: [email protected]
> To change subscription settings, add a password or view the web interface:
> http://intm-dl.sparklist.com/read/?forum=wdvltalk
>
> ________________  http://www.wdvl.com  _______________________
>
> You are currently subscribed to wdvltalk as: [EMAIL PROTECTED]
> To unsubscribe send a blank email to [EMAIL PROTECTED]
> To unsubscribe via postal mail, please contact us at:
> Jupitermedia Corp.
> Attn: Discussion List Management
> 475 Park Avenue South
> New York, NY 10016
>
> Please include the email address which you have been contacted with.
>

____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED] or
use the web interface http://e-newsletters.internet.com/discussionlists.html/
       Send Your Posts To: [email protected]
To change subscription settings, add a password or view the web interface:
http://intm-dl.sparklist.com/read/?forum=wdvltalk

________________  http://www.wdvl.com  _______________________

You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]
To unsubscribe via postal mail, please contact us at:
Jupitermedia Corp.
Attn: Discussion List Management
475 Park Avenue South
New York, NY 10016

Please include the email address which you have been contacted with.

Reply via email to