#450 Fixed window.onload issues on iOS