$(".recommend").hide(); $.getScript( "https://www.parkz.com.au/javascripts/headroom.min.js" ); $.getScript( "https://www.parkz.com.au/javascripts/jquery.headroom.js" ); setTimeout( function(){ $(".recommend").load("https://www.parkz.com.au/recommend/2"); $(".recommend").fadeIn(1000); $(".recommend").headroom({ "offset": 10, "tolerance": 5, "classes": { "initial": "animated", "pinned": "slideDown", "unpinned": "slideUp" } }); } , 10000 );