Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
beaumartinez
· 14y ago · 0 comments
The DOM will have been parsed if your scripts are at the end—but external components (links, imgs) may not have loaded yet.
Comments
[–]
ehynds
14y ago
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.
[–]
beaumartinez
OP
14y ago
You are correct! Thanks. Been spending too long with document.readyState.
[–]
ricardobeat
14y ago
you meant window.onload