Window load

Cross-browser fix successful