[thelist] (how to stop) IE6 rendering before it has fully compiled

Barney Carroll barney at textmatters.com
Tue Nov 21 05:51:37 CST 2006


Lee kowalkowski wrote:
>     <script type="text/javascript">
>       if(window.attachEvent)
>       {
>         document.write("<div id='hide' style='display:none'>");
>         window.attachEvent("onload",
>           function()
>           {
>             var hideDiv = document.getElementById("hide");
>             hideDiv.removeNode ? hideDiv.removeNode() :
> hideDiv.style.display = "";
>           }
>         );
>       }
>     </script>

I forgot to thank you for this Lee, it's a neat little script. I have 
since found the problem to be loads of nonsensical and (significantly) 
contradictory styles that were loading before mine.

> It has the added bonus of filtering out impatient users too.  Think
> how much you'll save on traffic!

Hehehe. Can't wait to tell the clients!


Regards,
Barney



More information about the thelist mailing list