You can use the explicit call
$(document).ready(function(){
// do this after dom is ready
});
Or use the shortcut
$(function(){
// do this after dom is ready
});
It's also useful to wrap your jQuery in an anonymous function when you're using other libraries; Also very common to use this when writing jQuery plugins.
(function($, window){
// use $ here freely if you think any other library might have overridden it outside.
$(function(){
// do this after dom is ready
});
})(jQuery, window);
Lastly, you can use jQuery.isReady
(bool)
if (jQuery.isReady) {
// do something
}