Created
August 2, 2018 20:04
-
-
Save midnai/5af0a0d73770332a0f844012b46533de to your computer and use it in GitHub Desktop.
Jquery-document-ready
This file contains 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
$(document).ready(function() { | |
//do jQuery stuff when DOM is ready | |
}); | |
jQuery(document).ready(function($) { | |
//do jQuery stuff when DOM is ready | |
}); | |
$(function(){ | |
//jQuery code here | |
}); | |
(function($) { | |
// code using $ as alias to jQuery | |
$(function() { | |
// more code using $ as alias to jQuery | |
}); | |
})(jQuery); | |
$(window).load(function(){ | |
//initialize after images are loaded | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment