Skip to content

Instantly share code, notes, and snippets.

@DevelopIntelligenceBoulder
Created October 6, 2015 02:53
Show Gist options
  • Save DevelopIntelligenceBoulder/c7aeed657b4b32897b2e to your computer and use it in GitHub Desktop.
Save DevelopIntelligenceBoulder/c7aeed657b4b32897b2e to your computer and use it in GitHub Desktop.
// this is how to write code in IFFE format and wait for the DOM to load to call certain functions
(function() {
'use strict';
function function1() {
}
function function2() {
}
function function3(param1, param2, param3, param4) {
}
function functionName() {
}
//Runs after the DOM is loaded
$(function() {
functionCall();
functionCall2();
});
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment