To see the difference between onload and readyState == "complete" and DOMContentLoaded.
onload
readyState == "complete"
DOMContentLoaded
Run me with Firebug or Chrome Dev Tools, and cache disabled, and watch the console.