[thelist] Problems with late arrivals of JS SRCs

Simon Dell simondl at epic.co.uk
Wed Jan 9 04:46:11 CST 2002


for a really ugly cheap hack, you could put the first function call in a 
<script/> tag at the bottom of the page, so that it's the last thing loaded.

i'm pretty sure that this isn't _supposed_ to be any different from using 
<body onload="foo(()"/> but it saved my bacon on one project i did even 
though i didn't want to use it.


At 10:37 09/01/02 +0000, you wrote:
>>If the browser does activate a script before all the SRC components have
>>arrived, what is the best way to check arrivals of SRC scripts and make
>>sure the complete script isn't activated until they have all arrived?
>
>I'd run the first script onLoad. As far as I know this fires only after 
>all the scripts have been loaded. I always use it in this sort of 
>situation and it has never yet let me down.
>
>ppk
>
>_________________________________________________________________
>Chat with friends online, try MSN Messenger: http://messenger.msn.com
>
>
>--
>For unsubscribe and other options, including
>the Tip Harvester and archive of TheList go to:
>http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list