Internet explorer loads same image more than once with ajax

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

Advertisements
About

Work is fun!

Tagged with: , , ,
Posted in AJAX, important links, Linux, Tips And Tricks, Ubuntu
One comment on “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

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Disclaimer
All content provided on this "tareqalam.com" blog is for informational purposes only. The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner of [tareqalam.wordpress.com] will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.
December 2008
M T W T F S S
« Nov   Mar »
1234567
891011121314
15161718192021
22232425262728
293031  

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 23 other followers

%d bloggers like this: