Hi list,
I recently started using jQuery after working with plain JavaScript
for several years. The features of jQuery are amazing!
Now I have found a problem regarding IE's handling of dynamically
created images. It is not really jQuery related, but maybe you can
help me anyway.
I have the following code snippet:

$(document).ready(function() {
    for (var i = 0; i < 100; i++)
        $('body').append('<img src="images/b_edit.png"
title="Edit">');
});

As you can see, this code creates 100 *identical* images; however, IE
loads each image separately. (I can see it in the log file of my web
server and it also takes a considerable time until the page is fully
loaded.) Is there any way to change this behavior?
If I put all the images directly in my document (not generating them
dynamically) the image is only loaded once, but this is not an option
for me.

Thanks a lot,
Christian

P.S.: I use IE 6.0.

Reply via email to