I understand that
Image.onerror fires if image was not loaded successfully. But when is fired which? Can they fire both in some circumstances?
I would guess that it's possible for them both to fire, but I would also guess that it would be rare.