Hi I have a problem with this. I'm loading a new page into my DOM, in a container, and the alert is displayed before the elements like images or videos are loaded.
height : function (){
var newHeight = $('#primary').height();
var el = $('.show-container');
el.css({'height': newHeight + 'px'});
},
loading : function(page){
var self= this;
$.ajaxSetup({cache:false});
$('#ajax-inserted1').load(page, function(){
$('#remove').removeClass('to-screen').addClass('to-left');
$(this).removeClass('to-right, to-left');
$(this).addClass('to-screen');
self.height();
});
},
Is it possible to wait until everything has fully loaded?