Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

The DOM will have been parsed if your scripts are at the end—but external components (links, imgs) may not have loaded yet.


The same is true whether or not you use a document.ready statement; you're thinking of window.onready, which fires once all images have been downloaded.


You are correct! Thanks. Been spending too long with document.readyState.


you meant window.onload




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: