I have function that I need to run on window load as well as window resize and I was wonderinghow can I  make my code more efficient.Here is my current code: jQuery(window).resize(homeSliderAdjust);var windowWidth = jQuery(window).width();if (windowWidth < 750) {    var hmLeft = jQuery('.page-home #slides .left').outerHeight();    var hmRight = jQuery('.page-home #slides .right img').outerHeight();    var hmSliderHeight = hmLeft + hmRight;    jQuery(.page-home #slides).css(height, hmSliderHeight);    jQuery(.page-home #hero).css(height, hmSliderHeight);  }function homeSliderAdjust(){    var windowWidth = jQuery(window).width();    if (windowWidth < 750) {      var hmLeft = jQuery('.page-home #slides .left').outerHeight();      var hmRight = jQuery('.page-home #slides .right img').outerHeight();      var hmSliderHeight = hmLeft + hmRight;      jQuery(.page-home #slides).css(height, hmSliderHeight);      jQuery(.page-home #hero).css(height, hmSliderHeight);    }  }
Improving js efficiency
javascript;html;css