17,097
edits
mNo edit summary |
(Try another event listener) |
||
Line 576: | Line 576: | ||
// Reset sticky header positions once the page is fully loaded. | // Reset sticky header positions once the page is fully loaded. | ||
// Without this, headers may have an incorrect offset | // Without this, headers may have an incorrect offset | ||
document.addEventListener('readystatechange', function(event) { | |||
if (document.readyState === 'complete') { | |||
setStickyHeaderTop(); | |||
} | |||
}); | |||
} | } | ||
}); | }); |