Created
July 9, 2024 10:24
-
-
Save wplit/4d96651df55c75f45595cd6598240083 to your computer and use it in GitHub Desktop.
manually trigger resize after page load
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("DOMContentLoaded", () => { | |
setTimeout(() => { | |
window.dispatchEvent(new Event('resize')) | |
}, 1000) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment