Skip to content

Instantly share code, notes, and snippets.

@Mao8a
Created February 9, 2023 21:32
Show Gist options
  • Save Mao8a/1b3b0f3cedecbff14f5d7b0db39bc7c6 to your computer and use it in GitHub Desktop.
Save Mao8a/1b3b0f3cedecbff14f5d7b0db39bc7c6 to your computer and use it in GitHub Desktop.
JS: JavaScript Empty Function Init
/**
* @description Contact Us Component
* @const elements {Object} List of elements
* @const element {Object} DOM element
*/
(function () {
/**
* @description Main function
*/
function onDocumentReady() {
/**
* Function Content
*/
}
document.readyState !== 'loading' ? onDocumentReady()
: document.addEventListener('DOMContentLoaded', onDocumentReady);
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment