You shouldn't to call onload if there are no events.