Defer window 'ready' event to let rendering happen

Fixes I6f3dd9746

Change-Id: I57864586b06197e5894af5572668b62c098b5875
Merge "Defer window 'ready' event to let rendering happen"