Created
July 9, 2019 12:15
-
-
Save richellyitalo/b6131394e8eb99bacc4f6e363b3684fc to your computer and use it in GitHub Desktop.
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
// IIFE - Immediately Invoked Function Expression | |
(function($, window, document) { | |
// The $ is now locally scoped | |
// Listen for the jQuery ready event on the document | |
$(function() { | |
// The DOM is ready! | |
}); | |
// The rest of the code goes here! | |
}(window.jQuery, window, document)); | |
// The global jQuery object is passed as a parameter |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment