Did you know that Firefox, Safari, Konqueror and Opera all let you embed an image in an <img> element? Maybe, if you saw it on Andy’s linkblog. OK, so that’s cool, but it doesn’t explain why you would want to.
Well there’s a Greasemonkey script (Greasemonkey is tanfastic and you should install it now if you haven’t) that will display people’s FOAF profiles on web sites. I added a bit that would link to the FoaF Explorer, but I wanted to use this image. If I included it as a regular image, it could mean a lot of hits to the server, which would be kind of rude. Instead, I added this:
You can view source or click on the image and look at your address bar to see it in action. It makes the script bigger, but now it doesn’t rely on an external image. I think Greasemonkey scripts are the perfect use for embedded images. You know the user is going to be on Firefox and you won’t have to worry about the image server responding.