Hello again,

I would like to know if I should keep on starting my JS functions with the document.ready function? Below is an example:

Code JavaScript:
// Start Game
$(document).ready(function() {
	$('.startgame').click(function() {
		if ( progress === 1) {
			var startGame = confirm("Your current game will be lost, are you sure you want to start a new game?");
			if ( startGame === 1) {
				location.reload(true);
			}
		}
		else {
			location.reload(true);
		}
	});
});
 
// New game
$(document).ready(function() {
	$('newgame').click(function() {
		var newGame = confirm("Start a new game with the above settings?");
		if ( newGame === 1) {
			location.reload(true);
		}
	});
});

Thanks in advance.