CSS position:sticky; or JQuery/JS?
To create a sticky element such as a sidebar.
Sorry. Corrected. :)
JQuery/JS has the advantage of be more cross-browser supported actually: even if the bad is that will not work if JS is desactivated by user or unavailable... but Css 'sticky' property not always good supported by whole browsers and anyway its behaviour is not obvious at all to master ^^ However, a 'position:fixed;' could be widely used, so much better than do it with JS :P
Is that a question ???
I think sticky is looking better. ^_^