shorthand for jquery document ready
snippet in javascript

shorthand for jquery document ready

user1122

$(function(){ 
	//jQuery code here 
});

document ready

user4548

$( document ).ready(function() {
    console.log( "ready!" );
});