...

View Full Version : Does the browser load image twice?



bloody86
11-12-2010, 05:35 PM
If I set the same image in two different <img/> tags, will the browsers load twice the same image, or it will load once and share it across the html?

abduraooft
11-12-2010, 05:41 PM
or it will load once and share it across the html? That's correct. Browser will use it's cache to load the image for the subsequent request.

bloody86
11-12-2010, 05:57 PM
So if one img tag contain original image and other same image but with redused size, second tag will use the same image and just reduce his size?

abduraooft
11-13-2010, 09:27 AM
Yes, it'll use the cached copy, as long as you use the same src.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum