$(window).on('load', function() { console.log('All assets are loaded') })
$(document).ready(function () { // Function code here. });