xxxxxxxxxx
$(function(){
// equal to $( document ).ready(function() {
});
xxxxxxxxxx
$(window).on("load", function() {
// Code to be executed when the window has finished loading
});
xxxxxxxxxx
$(document).ready(function() {
// Your code or action here
alert("Page has finished loading!");
});
xxxxxxxxxx
$(document).ready(function() {
// Code to be executed when the page finishes loading
console.log("Page loaded!");
// Your additional code here...
});