fix window.onload under IE8, #24210