Sticky Sidebar is a pure JavaScript plugin for making smart and high performance sticky sidebar, works with sidebar if it’s taller or shorter than the viewport, integrated with resize sensor to re-calculate the dimensions automatically when the size of sidebar or its container is changed, supports jQuery/Zepto and compatible with Firefox, Chrome, Safari, and IE9+.
Sticky Sidebar does not re-calculate all dimensions when scrolling, just necessary dimensions. It handles the sidebar when is tall or too short compared to the rest of the container and integrated with resize sensor to re-calculate all dimensions of the plugin when size of sidebar or its container is changed.