Created
August 27, 2012 08:50
-
-
Save EvanHahn/3486751 to your computer and use it in GitHub Desktop.
After the DOM is ready, jQuery
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 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