// Run when DOM loaded. $( function(){ alert( "First method in queue" ); } ); // Run when DOM loaded. $( function(){ alert( "Second method in queue" ); } );