Webkit fix for load event.
Improve resize event.