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.