MediaWiki:Common.js: Difference between revisions

m
no edit summary
(Attempt to correct issue where sticky headers may not be initialized correctly before the page fully loads)
mNo edit summary
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
window.addEventListener('load', function(event) { setStickyHeaderTop(); });
window.addEventListener('load', setStickyHeaderTop);
}
}
});
});