It's a good feature to have, but what I don't agree with is checking to see if there already is a loading attribute before adding it. Checking this for thousands of images would definitely slow down everything.

Why not assume there's no loading attribute and add it automatically? This way, there won't be any duplicate functionality with plugins. Also, if there's a plugin adding this attribute, which one will have higher priority?