minified version with bugfix

This version adds the getAttribute whenever checkLoaded is used.