Skip to content

Instantly share code, notes, and snippets.

@aj-adl
Created January 13, 2015 22:37
Show Gist options
  • Save aj-adl/d6f5da8eed27cb7dd609 to your computer and use it in GitHub Desktop.
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
(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