Jeśli dokument jest załadowany
if (document.readyState === 'complete') {
// The page is fully loaded
}
Different Dogfish
if (document.readyState === 'complete') {
// The page is fully loaded
}