there is a mozContent event that will tell you the same stuff but you need to be listening prior to boot but I guess you could apply some logic like: hey if this is visible then I am good otherwise wait for this event