javascdrpt on load code example
Example 1: document on load
$(window).on('load', function() {
console.log('All assets are loaded')
})
Example 2: js document on load
document.onload = function ...
$(window).on('load', function() {
console.log('All assets are loaded')
})
document.onload = function ...