Answers for "jquery when window loaded"

1

window load jquery

$(window).on('load', function() {
    console.log('All assets are loaded')
})
Posted by: Guest on September-10-2021
0

on page fully loaded jquery

$(window).load(function () {
    ....
});

If you have to wait for an iframe (and do not care about the assets, just the 
DOM) - try this:

$(document).ready(function() { 
    $('iframe').load(function() { 
       // do something
    });
});
Posted by: Guest on June-12-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language