Skip to content

Instantly share code, notes, and snippets.

@lionhylra
Created September 17, 2013 04:44
Show Gist options
  • Save lionhylra/6590158 to your computer and use it in GitHub Desktop.
Save lionhylra/6590158 to your computer and use it in GitHub Desktop.
These three implementations are equivalent.
//1
$( document ).ready(function() {
// Handler for .ready() called.
});
//2
$(function() {
// Handler for .ready() called.
});
//3
jQuery( document ).ready(function( $ ) {
// Code using $ as usual goes here.
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment