[thelist] Problems with late arrivals of JS SRCs

Peter Small peter at genps.demon.co.uk
Wed Jan 9 06:25:04 CST 2002


Simon,

I'm not sure this will work because SRCs sometimes arrive after the page in
loaded. Although I'm judging this from graphic SRCs.

Does a page only load after all SRCs in the head are loaded?

peter
http://www.avatarnets.com


>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 !
>
>
>--
>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