Skip to content

Instantly share code, notes, and snippets.

@jaggy
Last active January 29, 2017 04:03
Show Gist options
  • Save jaggy/10555076 to your computer and use it in GitHub Desktop.
Save jaggy/10555076 to your computer and use it in GitHub Desktop.
jQuery boilerplate
/*
|--------------------------------------------------------------------------
| jQuery Boilerplate based on http://gregfranko.com/jquery-best-practices/#/8
| Author: jaggyspaghetti
| Gist at https://gist.github.com/jaggyspaghetti/10555076
|--------------------------------------------------------------------------
*/
(function(application) {
// avoid jQuery conflicts
application(window.jQuery, window, document);
}(function($, window, document) {
/*
|--------------------------------------------------------------------------
| Document Ready
|--------------------------------------------------------------------------
*/
$(function() {
});//end $(document).ready();
}));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment