window.onload is more compatible