I addded the following jquery code to make resizing for fixed menu in scroll case , but it doesn't work in ie8 <script type="text/javascript"> jQuery(document).on("scroll",function(){     if(jQuery(document).scrollTop()>100){         jQuery(".navbar-fixed-top").addClass("small");     } else{         jQuery(".navbar-fixed-top").removeClass("small");     } });   </script>