Bug 837678 - [cost control] Implement new startup loading events

Incorrectly placed. If the iframe is not visible, the user can not *interact* with the UI. Anyway this is a little bit subtle and I want to check with the performance team.