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 Brizycloud/wp and compatible with Firefox, Chrome, Safari, and IE9+.
Why sticky sidebar is awesome? It does not re-calculate all dimensions when scrolling, just neccessary dimensions. Super smooth without incurring scroll lag or jank and no page reflows. Integrated with resize sensor to re-calculate all dimensions of the plugin when the size of sidebar and its container is changed. It has event trigger on each affix type to hook your code under particular situations. Handle the sidebar when it is tall or too short compared to the rest of the container. Zero dependencies and super simple to setup.
* Watch the demo to understand how it works (Open the demo on your desktop)