(Pre-emptive strike: If you\'re tempted to mark this as a duplicate, note that other questions seem to ask \"why am I getting this error?\" I know why I\'m getting this erro
I was dumbfounded by this issue today myself. Everything was working fine (the images loaded visually as expected) except that the error kept showing up in Firefox error console - no such errors in IE or Chrome though.
In my case I was plugging an image into a div with innerHtml in an on complete jquery handler. The errors stopped when I preempted the jquery call with:
var image_holder = new Image();
image_holder.src = img_path;//path of image that's going to be plugged in
It worked for me, but it still makes no sense. I assume it's something to do with timing as this code initiates the image to load before it gets to the code that actually plugs it into the page.