Skip to content

Instantly share code, notes, and snippets.

@sheriffderek
Created January 15, 2014 19:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sheriffderek/8442756 to your computer and use it in GitHub Desktop.
Save sheriffderek/8442756 to your computer and use it in GitHub Desktop.
setup for jQuery / no conflict
(function($){
// ================================================
// print something to the console // easter egg style
console.log("Hello there... ");
$( document ).ready(function() {
// ================================================
// stuff
// ================================================
}); // end document ready
$( window ).resize(function() {
// ================================================
// stuff
// ================================================
}); // end on window resize
$( window ).load(function() {
// ================================================
// stuff
// ================================================
});
// ================================================
})(jQuery);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment