Added contentloaded event.