Created
January 13, 2015 22:39
-
-
Save aj-adl/d798429c42a181e4e37f to your computer and use it in GitHub Desktop.
Standard jQuery noConflict wrapper - waits till $.ready event before executing. Very common in WP JS code
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
jQuery(document).ready(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 | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment