Sorry if this was answered before, but all searches talk about differences, and not about using the two together if possible.
Simply, $(window).load.(function() {}) can I use INSIDE for $(document).ready.(function() {}) ?
I have some things to do after loading the DOM, but then I want to show some elements only after the images have finished loading. The only thing that works in Explorer 8 is to put the $(window).load inside $(document).ready with everything else.
Is this an acceptable practice?
I just want to use the most acceptable method to show a DIV that contains small images, such as a toolbar, after a complete build. ( visibility hidden compared to display none , for example). The HTML for this DIV written by code inside $(document).ready , and then added to the body using $('body').append() before using $(window).load .
I have a lot of problems with Explorer 8.
jquery image load document-ready
Sparky Feb 15 '11 at 17:09 2011-02-15 17:09
source share