document on loaded code example
Example 1: document on load
$(window).on('load', function() {
console.log('All assets are loaded')
})
Example 2: document load javascript
window.onload = function() {
// Code here
}
Example 3: js document onload
//use
window.onload=()=>{};