Last active
August 29, 2015 14:00
-
-
Save irazasyed/11308161 to your computer and use it in GitHub Desktop.
jQuery: Load jquery properly within the context of WordPress-targeted JavaScript without using noConflict.
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
// remap jQuery to $ | |
(function($){ | |
"use strict"; | |
/* trigger when page is ready */ | |
$(document).ready(function (){ | |
// your functions go here | |
}); | |
/* optional triggers | |
$(window).load(function() { | |
}); | |
$(window).resize(function() { | |
}); | |
*/ | |
})(window.jQuery); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment