Hi,

Which one is loaded faster? Shall I store an image in my hosting an display it or outsource it from different website and display it in my website?

<img src="in my image folder/image.jpg" />
OR
<img src="http://www.otherwebside/image.jpg" />

Thanks

Hi Veledrom,

I'm not too sure about the speed implications of outsourcing an image, if I'm to be honest. But there are other factors to take into consideration here when deciding whether or not to outsource your site's imagery.

For instance, if the site containing the image has shocking server stability and connection, then no matter how good your hosting, that image won't appear on your site, which in turn makes you look bad.

And of course there's making sure the host site doesn't move, rename or delete that image. Or that the site itself doesn't disappear.

Just a few thoughts and the reasons why I prefer to keep a hold of the images I'm using.

Hope this helps
=D

The first is local, which is on your PC, and the second is the another site or absolute address of your site. I don't think the speed depend on the file location which are from the same location. 'http://www.mysite.com/images/image.jpg' or 'images/image.jpg ', I think they are the same, because of the same root on my PC. Maybe slow if the file is on different location. Thanks for the question. need to ask like that. Sometimes, we forget the main focus.

outsourcing the image is one way of increasing connection numbers
the http protocol limits the number of connections (2) to each domain,
exactly how i dont know, but it can be finessed

images on a subdomain pics.mysite.com
scripts on a different subdomain scr.mysite.com
text/php/html files on www.mydomain.com

the http parser can then make 2 connections to each subdomain, a total of 6(http max) and pages download faster without offsite hosting of the images
--edit--
found a link http://www.askapache.com/htaccess/apache-speed-subdomains.html

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.