Created
January 13, 2015 22:37
-
-
Save aj-adl/d6f5da8eed27cb7dd609 to your computer and use it in GitHub Desktop.
jQuery noConflict wrapper that executes immediately instead of waiting for the ready event
This file contains hidden or 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($) { | |
// Inside of this function, $() will work as an alias for jQuery() | |
// and other libraries also using $ will not be accessible under this shortcut | |
// Put your code here e.g. $('#page').find('.comments').each( myFunc()); etc | |
})(jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment