I am trying to improve my jQuery skill and I have this bit of code. It's basic purpose is to size and resize a background to keep it at the same height as a responsive slider, so matching the size of the window; and tracking that if it's resized by the user.
Could it be refactored better or is it good as it is.
$(window).load(function() {
var height = $('#display-area').css('height');
$('.skin-background')
.css('display', 'block')
.css('height', height);
});
$(window).resize(function() {
var height = $('#display-area').css('height');
$('.skin-background')
.css('height', height);
});