Live data from Hacker News

StickyMojo: A contained sticky sidebar plugin for jQuery.

mojotech.github.com

11–20 of 23 posts

Re: StickyMojo: A contained sticky sidebar plugin for jQuery.

#11
post #9
post #2

Can any UX people illuminate the modern popularity of these things? I find them very distracting, and typically unusable. When I'm scrolling down the page, the function I'm performing is consumption of content. With a sidebar there begging me to click away (or worse, display ads and social media junk), it considerably reduces my desire to perform this function. It just reminds me of the Java applets in 1996 for sideb…

It's very useful for top-level navigation when using the "infinite scrolling" that seems to be so popular these days. It makes it so you don't have to scroll all the way back up when you're 10 pages deep.

Ah, not a fan of endless scrolling either, so that may explain my feelings here. :)

Re: StickyMojo: A contained sticky sidebar plugin for jQuery.

#14

Why is there need for a plugin to do this? Why not use CSS: position: fixed?

"The problem with a simply "fixed" positioned element is that it doesn't react well to a scroll or window resize. In many cases the sidebar will overlap elements such as the footer or content area. Generally this is not the intended effect."

Re: StickyMojo: A contained sticky sidebar plugin for jQuery.

#15
post #12

I thought binding to window.scroll was considered bad practice without something like this http://benalman.com/projects/jquery-throttle-debounce-plugin...

Yes, you're quite right. There's also a light throttle snippet (function.prototype.throttle) here: http://supplementjs.com/

Re: StickyMojo: A contained sticky sidebar plugin for jQuery.

#18
post #12

I thought binding to window.scroll was considered bad practice without something like this http://benalman.com/projects/jquery-throttle-debounce-plugin...

Yes, you're quite right. There's also a light throttle snippet (function.prototype.throttle) here: http://supplementjs.com/

Neat, thanks for that link. I'm not a full time JS developer and I always feel like I'm a few steps behind everyone else.

Re: StickyMojo: A contained sticky sidebar plugin for jQuery.

#19
post #9

Earlier quoted context omitted.

It's very useful for top-level navigation when using the "infinite scrolling" that seems to be so popular these days. It makes it so you don't have to scroll all the way back up when you're 10 pages deep.

how does this compare to having a "to top" button on the bottom of the page which appears when scrolling? I mean, I understand the difference between showing actual actions or giving more space to content, but I'd like to know of some real studies on it.

It's an extra click

Re: StickyMojo: A contained sticky sidebar plugin for jQuery.

#20
UserAgent sniffing and Graceful Degradation do not mesh.

This sniffing in particular will fail for Opera 6-8, therefore excluding perfectly capable browsers by a very shallow criterion.

The sniff serves no purpose, and is furthermore based upon a thoroughly disproved anti-pattern.

Post reply on HN