Created
December 1, 2022 07:50
-
-
Save HDDen/c03978e6da92bced762af746ae9a1217 to your computer and use it in GitHub Desktop.
DOMContentLoaded alternative
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
!function(){function e(){ | |
// ваш код | |
}"interactive"==document.readyState||"complete"==document.readyState?e():document.addEventListener("DOMContentLoaded",function(){e()})}(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment