var img = new Image(); img.onerror = function(e) { e.preventDefault(); } img.src = "non-existant-url"; The following code creates a console error message. There are many cases where code like this might be used to integrate components that may or may not be present. In such cases, the load error isn't a true error, and it would be nice to be able to silence it.
I think the console spew might happen via the inspector directly, before the event is dispatched (at least, if I add a logging statement in the error event handler, it gets output after the red 'GET <url>' line).
I'm just closing this in favor of 86263.