I made a simple sticky footer. It makes everything fit nicely when the page loads, but flickers and doesn't put the footer where it should go on re-size. Any ideas?
$(window).on("resize", function () {
$(".site-footer").css("padding-top", $( window ).height() - $( ".site-wrap" ).height() - 1 + "px");
}).resize();