I need a function that is called when the page is totally loaded (text, image, and so on).
I noticed that $(window).load()
is now deprecated. So, what should I use?
If you want just avoid the load
function, use the generic on
function :
$(window).on('load', function(){
// insert code here
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With