xxxxxxxxxx
// Code block to execute a function when the window and its content finish loading
$(window).on('load', function() {
// Your code here
});
xxxxxxxxxx
$(window).on('load', function() {
console.log('All assets are loaded')
})
xxxxxxxxxx
$(window).on("load", function() {
// Code to be executed when the window has finished loading
});