xxxxxxxxxx
$(window).on("load", function() {
// Code to be executed when the window has finished loading
});
xxxxxxxxxx
// Code block to execute a function when the window and its content finish loading
$(window).on('load', function() {
// Your code here
});
xxxxxxxxxx
$(document).ready(function() {
// Code to be executed when the page finishes loading
console.log("Page loaded!");
// Your additional code here...
});