Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

When adding images to your site, is it bad to use an image located on another site:

<img src='http://www.some_other_site.com/image.jpg'>

The same goes for javascript, is it bad to link to javascript located somewhere else:

<script type='text/javascript' src='http://www.some_other_site.com/js.js'></script>

I ask this purely from an SEO perspective (I am aware that if the other site takes down their image, or something happens to their server, that will affect the content on my site). I am especially curious about javascript, since it is actually common practice to link to javascript libraries on other sites.

share|improve this question
add comment

1 Answer

In general, no it does not affect your SEO. However there are some issues you should be aware of:

  • The external site could be quite slow, which could have a tiny impact on SEO as Google's algorithm includes site speed. However if you are wondering about things like Google hosting jQuery then they will almost certainly be faster than your own site, actually improving SEO.

  • Hotlinking another image could increase that image's ranking in image search. This is unlikely to affect you directly unless they are a competitor and you want to always rank above them.

  • The image or script could be removed from the other site like you said.

  • The site could change the file if hotlinking is detected. For images they could refuse to serve it or even display something offensive.

  • For scripts there could be security issues introduced if the site is a little untoward. They can run any JavaScript on your site, so could steal user information etc.

Note that most of the above only applies if you are hotlinking things without permission. Scripts like jQuery on Google's CDN are intended to be hotlinked.

share|improve this answer
3  
"display something offensive" haha, didn't think of that one. Thanks for this! –  kyphos Jan 23 '13 at 17:26
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.