I’ve changed code to get no errors
jQuery(function($) {
if($(document).height() <= $(window).height()) {
$('#header').css({ 'height': ($(window).height()) });
$(window).resize(function(){
$('#header').css({ 'height': ($(window).height()) });
});
}
});
but its still not working, any ideas?