Skip to content

Instantly share code, notes, and snippets.

@Japh
Forked from tommcfarlin/jquery-boilerplate.js
Created March 13, 2013 05:33
Show Gist options
  • Save Japh/5149615 to your computer and use it in GitHub Desktop.
Save Japh/5149615 to your computer and use it in GitHub Desktop.
/**
* This gist 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.
*
* @version 1.0
*/
(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