Tareq Alam

i have promises to keep and miles to go before i sleep – Robert Frost

Internet explorer loads same image more than once with ajax December 5, 2008

In Internet Explorer  when an html is loaded with image inside if the image is same in all img tag internet explorer loads the image each time it foinds in img tag.. this makes the ajax loading slower. AJAX is used to make a web page faster but IE seems having problem with that.

To solve this i have applied an idea .. searching google i came to know that IE loads single time of same image located in style background of an element. so I made img tag to div with style background property to the src of the image … now if i load 100 of that div via ajax it loads only one time. Thus my web page loads faster in IE.. Thanks to FireFox it behaves nice with this problem.

Hope this helps

 

One Response to “Internet explorer loads same image more than once with ajax”

  1. Jakisa Says:

    No. It doesn’t help because it is not true. It just made me lose another half of hour on solution that doesn’t help…


Leave a Reply