document on laod code example Example: document on load $(window).on('load', function() { console.log('All assets are loaded') })