I think the most efficient way would be to use inline javascript to hide the page and blockUI(), and unblock and show onload.
.....
<body>
<div id="container">
        <script type="text/javascript">
        $('#container').hide();
        $.blockUI();
        </script>
        ....
        ....
        ....
</div>
</body>
.....
Le 6 juin 07 à 17:23, Karl Swedberg a écrit :

have you tried using the Image.complete property?

you could try something like this:
1. hide everything on document.ready
2. loop through the images, testing for complete
3. if any return a value of false, set a timeout and start the loop again
4. if it loops through successfully, show everything.


--Karl
_________________
Karl Swedberg
www.englishrules.com
www.learningjquery.com



On Jun 6, 2007, at 7:33 AM, Matt2012 wrote:


has anyone got a follow up to this as im not getting anywhere with
this.

If i use window.onload it still reveals my dom before the css has been
applied and the last images have been loaded.

I need a full proof way of not showing anything until everything has
been fully loaded.



Reply via email to