$('#container').load(h);
$('#container').fadeIn();
I have a button click can load another file into it.
My problem is jquery run fadeIn while page is still loading.
Is any way to set fadeIn after the page load is finish?
$('#container').load(h);
$('#container').fadeIn();
I have a button click can load another file into it.
My problem is jquery run fadeIn while page is still loading.
Is any way to set fadeIn after the page load is finish?
Use callback function that is executed when the request completes.
$('#container').load(h,function(){
$(this).fadeIn();
});