Added support for MutationObserver, when available. Made the tracking of visibility status an explicit option.