Skip to content

Instantly share code, notes, and snippets.

@EvanHahn
Created August 27, 2012 08:50
Show Gist options
  • Save EvanHahn/3486751 to your computer and use it in GitHub Desktop.
Save EvanHahn/3486751 to your computer and use it in GitHub Desktop.
After the DOM is ready, jQuery
// The most readable way (in my opinion)
$(document).ready(function() {
// your code here
});
// Alternate way that's supposedly faster
$.fn.ready(function() {
// your code here
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment