Created
September 10, 2019 20:28
-
-
Save whoisryosuke/97fe8a3f6d78c7d8940648d370d54b71 to your computer and use it in GitHub Desktop.
jQuery IIFE - Best practice for jQuery functions to wrap in IIFE -- example shows a shorthand of $(document).ready as $(function() {})
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() { | |
$('.example').dropdown(); | |
}); | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment