Si el documento está cargado

if (document.readyState === 'complete') {
  // The page is fully loaded
}
Different Dogfish