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