Added support for DOMContentLoaded, with fallback.
Normalize transitionend event.