![]() Preserved Topic: finished dling (Page 1 of 1) |
|
---|---|
Nervous Wreck (II) Inmate From: Pa, US |
![]() Does anyone know how I could check to see or wait until all the images and stuff that need to be downloaded are finished? I have stuff that uses the properties of the downloaded images, but it doesnt help much when it hasnt finished loading yet and gives me 0s for a width when it should be something else. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
![]() |
Nervous Wreck (II) Inmate From: Pa, US |
![]() um.. all the loading is done by a function called from <body onload>, and it loads all the images, then goes on to set the other initializing stuff I got going after it, but it isnt always done dling as it goes on to do the rest is what Im saying.. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() Ah, here's the thing. There's no point loading your page and then loading your images after - do it all at once! Put the contents of fn_1 in just regular script tags. |
Nervous Wreck (II) Inmate From: Pa, US |
![]() yeah.. that just might do it... thanks a lot! |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() Actually there is a point to loading images after the page loads. If you have a lot of basic mouseovers and run a preloader before the page finishes loading it's going to hold up the loading of the rest of the page. |
Lunatic (VI) Mad Scientist From: Massachusetts, USA |
![]() I believe if you put the images to be loaded in script tags at the *end* of your page, they'll load last. |
Paranoid (IV) Mad Scientist From: Somewhere over the rainbow |
![]() The poster has demanded we remove all his contributions, less he takes legal action. |
Nervous Wreck (II) Inmate From: Pa, US |
![]() Thanks for the help... the only thing I couldnt figure out was where to put the document.images thing. It seemed to return true no matter where it was. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() (document.images) ? true:false |