fixed cross-browser issues in headerOnLoad
Merge branch '13.06' into 13.09