Skip to content

Instantly share code, notes, and snippets.

@sheabunge
Forked from tommcfarlin/jquery-boilerplate.js
Created March 22, 2013 01:14
Show Gist options
  • Save sheabunge/5218217 to your computer and use it in GitHub Desktop.
Save sheabunge/5218217 to your computer and use it in GitHub Desktop.
Demonstrates how to properly load jQuery within the context of WordPress-targeted JavaScript so that you don't have to worry about using things such as `noConflict` or creating your own reference to the jQuery function.
(function( $ ) {
"use strict";
$(function() {
// Your code here
});
}(jQuery));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment