I have a web application using Bootstrap 3.2 and a menu with the
I have an image gallery page where images are loaded "on the fly" when the user scrolls down - as soon as any image is added the affix breaks and does not revert the menu to
$(window).unbind('scroll'); is causing the issue, as the Bootstrap implementation likely relies on a scroll listener. Instead, make your scroll listener into a variable and use
$(window).off('scroll', scrollListener) to remove only that listener.