News for hackers. Stuff that matters.
Re:Microfeatures I Love in Blogs and Personal Websites by fanf2 on Monday June 24, 2024 @10:32AM (#40776533)
Many of these suggestions are good. (I should make my subheds clickable!) But a couple of them, oh dear…

I really hate progress bars, they are incredibly distracting. One of the worst examples of front end programmers wasting their time reimplementing browser functions badly. I already have scroll bars! I do not need more scroll bars!

Also, link decoration: my browser already has a nice discreet indicator to tell me where a link goes, I don’t need or want mysterious dingbats in the running text. (It reminds me of websites that are so scared of hyperlinks that they send them via interstitial warning pages “YOU ARE LEAVING THE SITE!!!!1!1!”, or in a recent case via a $yber$ecurity box that broke the link completely.) And preview popups? Get in the sea, hostile obnoxious interruption.

Re:Microfeatures I Love in Blogs and Personal Websites by elric on Monday June 24, 2024 @11:58AM (#40777652)
I think progress bars are a logical consequence of the user-hostile shrinking of the scrollbar. Unusable, narrow things which are often hidden by default, and rarely have a visible elevator (or thumb) anymore. Of course, scrollbars are often entirely useless in pages which insist on loading content piecemeal -- another user hostile pattern.
Re:Microfeatures I Love in Blogs and Personal Websites by gessha on Monday June 24, 2024 @12:10PM (#40777814)
To add to this, pages sometimes have comments or footers or other bells and whistles after the content that I’m interested in and it makes me think the post is longer than it is. This leads me to either leave the post for later or straight up close it because it’s too long.
Re:Microfeatures I Love in Blogs and Personal Websites by mschuster91 on Monday June 24, 2024 @12:38PM (#40778139)
> To add to this, pages sometimes have comments or footers or other bells and whistles after the content that I’m interested in

Or, especially in news sites, Taboola and other bottom feeder trash.

Re:Microfeatures I Love in Blogs and Personal Websites by dredmorbius on Monday June 24, 2024 @04:28PM (#40780339)
uBlock Origin's element blocker is ideal for removing those. You can define global rules for anything from Taboola, Outbrain, RevContent, etc., and never see them again.

"Sharedaddy" is another element to nuke (social link litter crap).

Re:Microfeatures I Love in Blogs and Personal Websites by account42 on Tuesday June 25, 2024 @09:16AM (#40788229)
In those cases closing the page is the best solution anyway.
Re:Microfeatures I Love in Blogs and Personal Websites by pc86 on Monday June 24, 2024 @12:28PM (#40778021)
Whether or not either of these is user-hostile is up to interpretation and preference, but you're stating it as if it is objective fact.

You see user-hostile shrinking of the scrollbar, someone else sees more room for content and hiding something that isn't necessary until you need it. You see loading content piecemeal as hostile, someone else sees blocking that 1kb of text from being displayed while you do more network-intensive work as hostile.

Re:Microfeatures I Love in Blogs and Personal Websites by layer8 on Monday June 24, 2024 @01:24PM (#40778605)
Regarding scrollbars, it’s user-hostile if the user can’t control it according to their preference.
Re:Microfeatures I Love in Blogs and Personal Websites by pc86 on Monday June 24, 2024 @04:41PM (#40780492)
What can't you do on a scrollbar today that you could 10/20/30 years ago?
Re:Microfeatures I Love in Blogs and Personal Websites by layer8 on Monday June 24, 2024 @05:00PM (#40780715)
The problem is either (a) the scrollbar is hidden and the software doesn't allow to make it visible always or (b) the web page assumes there is no visible scrollbar (or, (c), only a "see-through" overlay scrollbar) even if there is one.

For additional aspects and details I refer you to these threads: https://hn.algolia.com/?dateRange=all&page=0&prefix=true&que...

Re:Microfeatures I Love in Blogs and Personal Websites by apitman on Monday June 24, 2024 @07:36PM (#40782389)
See it
Re:Microfeatures I Love in Blogs and Personal Websites by WorldMaker on Monday June 24, 2024 @12:44PM (#40778200)
Most of these progress bars are as thin as the native scrollbars have gotten (or thinner). If these are solely a consequence to the shrinking of the scrollbar, you'd imagine that they'd actually be bigger.

I think that's a large contributing factor, but either most implementations are are as deficient [0] as what they are trying to augment or there are other things at play here. (Branding since websites haven't been able to consistently style browser scrollbars since the IE/early Firefox era; as the other comment points out, trying to counterbalance how long pages have gotten with "after-content" such as ads and comments and recommended articles and "infinite scroll" to more articles.)

[0] Or arguably worse deficient: Most of them seem to have no real accessibility themselves and are opaque to things like screen readers. Even if modern scroll bars are hidden by default and woefully tiny visually by default, they still have decades of accessibility baked in and accessible options (if you can find them).

Re:Microfeatures I Love in Blogs and Personal Websites by dredmorbius on Monday June 24, 2024 @04:25PM (#40780304)
Obvious solution is obvious: restore the fucking scrollbar.

I suspect a strong driver of scrollbar deprecation is the overwhelming dominance of small-screen touch-based mobile devices. An active scrollbar, that is, one which not only shows page scroll depth, but controls it via touch, is one more UI element to generate annoying behaviours given the already perilous state of touch-based UIs. (The inability to correctly distinguish tap vs. drag or scroll actions is one that's driven me to distraction for well over a decade.)

Unfortunately, what's at least arguable on mobile becomes the trendy fashion on desktop, which is just fucking stupid.

Re:Microfeatures I Love in Blogs and Personal Websites by scott_w on Monday June 24, 2024 @05:11PM (#40780837)
To be fair, the designer of the website can’t restore scrollbars…
Re:Microfeatures I Love in Blogs and Personal Websites by p_l on Monday June 24, 2024 @06:05PM (#40781468)
... not exactly.

It's possible to essentially reimplement the logic of how scrollbars look, where they are, and when they appear, in just CSS on modern browsers.

Ended up having to do part of that once because it was easier at the time than to figure out just why a mismatched browser scrollbar would show up due to complex layouting issue (in embedded world, so we didn't actually have to worry about end user preference there, otherwise I wouldn't dare use such a hack)

Re:Microfeatures I Love in Blogs and Personal Websites by scott_w on Tuesday June 25, 2024 @02:10AM (#40785036)
Yes, that’s true but I suspect that what you’re doing is also what people are complaining about ;-)
Re:Microfeatures I Love in Blogs and Personal Websites by p_l on Tuesday June 25, 2024 @03:45AM (#40785632)
There's a reason why I included "I wouldn't dare" if it was a normal website :D

Especially since in our case I essentially deleted the scrollbar.

Re:Microfeatures I Love in Blogs and Personal Websites by dredmorbius on Tuesday June 25, 2024 @05:18AM (#40786246)
As much as I hate what browser devs have done to scrollbars, I tend to agree with you. The one thing worse that fucked defaults is everyone throwing their own fucked personal preferences at you. Which is why sane defaults matter so damned much.

There are browser configuration tweaks which can be done in at least some cases. On Firefox Mobile / Fennec, for example, there's a configuration hack which can be done.

I'm having trouble tracking that down but I think this might be it:

In about:config:

  ### scrollbar width
  widget.non-native-theme.scrollbar.size.override 30

  ### scrollbar shape
  widget.non-native-theme.scrollbar.style 4

From: <https://old.reddit.com/r/firefox/comments/ujo1xy/how_to_incr...>
Re:Microfeatures I Love in Blogs and Personal Websites by dredmorbius on Tuesday June 25, 2024 @02:44AM (#40785238)
I'm speaking to Web browser developers.

I'm #notafan of customising site scrollbars. But I've written my own CSS to do that (used only on my own, non-public, Web pages), and man is it a breath of fucking fresh air.

There are other apps which are similarly fucked in this regard. Mozilla's Pocket comes to mind.

Re:Microfeatures I Love in Blogs and Personal Websites by bayindirh on Tuesday June 25, 2024 @03:03AM (#40785370)
I personally like disappearing (or shrinking) scrollbars, given they appear when I scroll with a wheel, or approach towards them. It allows me to understand where I am, allows me to grab and scroll quickly when I approach them, and they allow me to see more content.

Yes, I use a big screen, but borderless and clean windows allows me to fit more content into the screen and is less distracting in general.

Re:Microfeatures I Love in Blogs and Personal Websites by funcDropShadow on Tuesday June 25, 2024 @08:07AM (#40787484)
But this works only if you have a scroll wheel. And then it works only vertically. Horizontally you still have to click on the invisible scrollbar. To see where you are in relation to the whole document.
Re:Microfeatures I Love in Blogs and Personal Websites by bayindirh on Tuesday June 25, 2024 @08:22AM (#40787647)
In Firefox, when I start to move my mouse right, vertical scroll bar appears. Same is true for horizontal one when I move my mouse down. It happens even before I get closer to any of the scroll bars. So, a wheel/trackpad is not required per se.

Moreover, almost all mice I used except the most basic ones have horizontal scrolling capability.

Re:Microfeatures I Love in Blogs and Personal Websites by dredmorbius on Tuesday June 25, 2024 @11:00AM (#40789474)
Turn mouse sideways. Problem solved!!!
Re:Microfeatures I Love in Blogs and Personal Websites by brokenmachine on Wednesday June 26, 2024 @02:21AM (#40796960)
Respectfully disagree. I absolutely hate disappearing scrollbars.
Re:Microfeatures I Love in Blogs and Personal Websites by bayindirh on Wednesday June 26, 2024 @02:29AM (#40796997)
I respect your view. This why we (should) have options. For example, Safari doesn't auto-show scrollbars like Firefox does, and it hinders its usability a lot, if you ask me.
Re:Microfeatures I Love in Blogs and Personal Websites by brokenmachine on Wednesday June 26, 2024 @07:17PM (#40805641)
The user agent should work for the user.

So we should be able to easily choose whatever default we want.

Re:Microfeatures I Love in Blogs and Personal Websites by elric on Thursday June 27, 2024 @07:16AM (#40809268)
The user agent hasn't worked users in quite a while now. They've become optimized to work for the website owner. Scrollbar behaviour is one example of this, but so are user-hostile input fields (e.g. not being able to paste email addresses in email confirmation fields, not being able to paste passwords, autocomplete being disabled for some fields and being unable to override it, etc).

At this point, I would pay good money for an actual user agent that is worthy of the name.

I wrote a rant about this on my blog last month. https://blog.melnib.one/2024/05/19/death-of-the-user-agent/

Re:Microfeatures I Love in Blogs and Personal Websites by elric on Tuesday June 25, 2024 @04:24AM (#40785898)
I have some 4k pixels of width on my desktop, and some 400 on mobile. It makes sense to not have a wide scrollbar on mobile. But it makes zero sense on desktop.

Scrollbars do two things. They let you scroll (duh), but they are also progress indicators. There are other ways of scrolling (e.g. swiping on mobile) which work by default. But there is no other default way of showing progress. I don't particularly like the progress bar example in the original post, something as unobtrusive as a percentage in the bottom right corner would work just as well. But I do want some indication of progress ...

Re:Microfeatures I Love in Blogs and Personal Websites by dredmorbius on Tuesday June 25, 2024 @05:13AM (#40786221)
Agreeing strongly, but I'd just like to point out that a probably more significant problem on mobile is that a scrollbar which you're likely to unintentionally hit with your fingers as you're clumsily and very imprecisely interacting with your device, or as Steve Jobs so famously declared, are "holding it wrong", absolutely is a valid reason to deprecate classic indicator-and-control scrollbars on mobile devices.

That is, a classic desktop scrollbar, dating back to Xaw widgets, the original Apple desktop, and even earlier[1] not only shows where you are within a text or display, but allows you to control where you are typically by clicking on elements of that scrollbar: the cursor, the bar itself, and the endpoint arrows. Several of these had interesting / quirky / annoying variants on interaction (those familiar with early X11 Xaw widgets can likely think of several).

There's an interesting static image comparison at Reddit:

<https://www.reddit.com/media?url=https%3A%2F%2Fi.redd.it%2Fe...>

And a much more informative interactive demonstration by Sébastien Matos from 2019:

<https://scrollbars.matoseb.com/>

Discussed on HN a year ago: <https://news.ycombinator.com/item?id=36307341>

And subject of quite a good review by The Verge: <https://www.theverge.com/2019/11/1/20943552/scroll-bar-visua...>

Another point on swiping: my mobile device for the past three years has been an e-ink tablet. And I've learnt that swiping absolutely sucks. E-ink displays are much faster than people seem to believe, but there's still lag that an emissive display lacks, and it's far better to page through a long text or display than to scroll through it. I've all but entirely adopted an e-ink optimised browser that mostly does this, EinkBro (based on FOSS Browser), and I am constantly trying to page through other apps by tapping where EinkBro's forward/back touch zones are. People who've used other ebook readers will be familiar with the general concept as most have similar features. Having to imprecisely scroll through a document or app is exceedingly painful.

Scrollbars partially solve this problem as for most, tapping above or below the cursor will advance the display by about a page of text (some feature a few percent overlap). On desktop systems, there's an even better option: the space bar. For a whole slew of apps and tools, dating back to Unix's pg, more, less, most, etc., you can page through a long text one screen at a time by tapping the space bar, which is the largest damned key (and hence the easiest-to-hit target) on the keyboard (Fitts's Law[2]).

By contrast, scrolling on mobile:

- Is highly subject to the tap-vs-drag confusion: the GUI cannot consistently distinguish a tap action (interacting with the application) with a drag (changing the viewpoint).

- Is imprecise both by contact point (that is where you're interacting with the display) and displacement amount (how far you're moving through a text or app). You might scroll by more or less than a page, and it takes considerable time for the eye to recapture the reading point.

- Obscures what it is you're interacting with. Your finger is covering the display you're trying to manipulate. A desktop mouse cursor by contrast covers little or none of the text or app.

- Is subject to further confusion based on dynamic characteristics of the document or app you're dealing with (e.g., a Web page with progressively-loaded or rendered elements, or on Mozilla Pocket, inconsistent placement and textblock wrapping around image elements).

I come to desperately hate scroll-based interfaces these days.

________________________________

Notes:

1. I wanted to claim provenance to the Mother of All Demos in ninteen-and-motherfucking-sixty-eight, but can't definitively show that Englebart included scrollbars. Wikipedia does give a 1974 implementation in Bravo: <https://en.wikipedia.org/wiki/Scrollbar#History_and_progress...>, citing <http://bitsavers.trailing-edge.com/pdf/xerox/alto/Alto_Users...> (PDF).

2. Which dates to 1954!!! <https://en.wikipedia.org/wiki/Fitts%27s_law> See also <https://doi.org/10.1037%2Fh0045689> (Fitts, 1964) and an extensive bibliography: <https://www.yorku.ca/mack/RN-Fitts_bib.htm>.

Re:Microfeatures I Love in Blogs and Personal Websites by dahauns on Monday June 24, 2024 @12:37PM (#40778124)
>I really hate progress bars, they are incredibly distracting. One of the worst examples of front end programmers wasting their time reimplementing browser functions badly. I already have scroll bars! I do not need more scroll bars!

And the icing on the cake - as demonstrated in the quanta link - is the horizontal rendering in combination with a generous sticky wasting precious space I'd rather use for, well reading content.

Re:Microfeatures I Love in Blogs and Personal Websites by digging on Monday June 24, 2024 @01:22PM (#40778583)
> I really hate progress bars, they are incredibly distracting. One of the worst examples of front end programmers wasting their time reimplementing browser functions badly. I already have scroll bars! I do not need more scroll bars!

This is addressed though in the following paragraph (indirectly), where a table of contents is rendered on the side. (Similar is a minimap, which I like for code or complex articles, but not for long text-heavy articles.) Maybe you also hate that, but it actually serves a purpose that scrollbar can never replicate and is much more useful than a scrollbar for many people.

Re:Microfeatures I Love in Blogs and Personal Websites by 0verkilled on Monday June 24, 2024 @01:23PM (#40778596)
+1 on finding progress bars distracting. I personally feel like they also "hurry" you into reading faster. If I see a progress bar, my first instinct is to try to finish as quickly as possible, even if that means a poorer understanding of the text.
Re:Microfeatures I Love in Blogs and Personal Websites by jonahx on Monday June 24, 2024 @01:25PM (#40778625)
To be fair, the author notes this and offers an alternative:

> One immediate thought is that this is completely superseded by the regular browser scroll bar that’s ever-present at the side of the page. However, the scroll bar could be deceiving. If your page has a comments section, the comments could make the page look dauntingly long. Similarly, references to other pages and general “footer material” count towards the scroll bar, but would not count towards the progress bar.

> Combining the two, you could imagine an always-visible table of contents that highlights the current section you’re in. With such a feature, you can always see where you are (including a rough estimate of how far into the page you’ve scrolled), and at the same time see how the current section integrates into the broader structure.

Re:Microfeatures I Love in Blogs and Personal Websites by crazygringo on Monday June 24, 2024 @03:41PM (#40779828)
Exactly this. When you're reading different news sites, you never have any idea which sites load hundreds of comments at the bottom and which don't. What you think is a long article actually turns out to be 80% comments by page length.

The same thing happens with books that include references at the end — a print book can be 20% endnotes. I've even encountered bizarre EPUB's where for some incomprehensible reason there's a page break between each endnote, so the actual content of the book ends somewhere around the 5% mark of total page count.

I actually really appreciate a super-thin (2px) progress bar in the header.

I don't like an always-visible table of contents because I find it really distracting. But I really like the way Wikipedia does it in their app, where it's a single tap to reveal the table of contents full-screen, centered on and highlighting your current section.

Re:Microfeatures I Love in Blogs and Personal Websites by antihero on Monday June 24, 2024 @03:57PM (#40779988)
Personally I just look but I see the value of very subtle scrollbar.
Re:Microfeatures I Love in Blogs and Personal Websites by zzo38computer on Monday June 24, 2024 @06:42PM (#40781874)
That is a relevant point, although still it shouldn't be necessary; proper semantic HTML commands should allow the browser to handle it automatically (in the way subject to user preferences), e.g. the <ARTICLE> command can be used if you want to delimit the article from the comments, and with commands such as <H1>, <H2>, etc you can delimit sections and automatically make a table of contents.
Re:Microfeatures I Love in Blogs and Personal Websites by hju22_-3 on Tuesday June 25, 2024 @06:34AM (#40786719)
That just sounds terrible. I want the program's scroll bar to reflect the actual size as accurately as possible. Anything else just sounds annoying.
Re:Microfeatures I Love in Blogs and Personal Websites by account42 on Tuesday June 25, 2024 @09:22AM (#40788298)
The browser could use this information in various ways depending on the preferences of the user. One example is the scroll bar map mode implemented in various text editors where a scaled down version of the content is shown to help you see where you are. Similarly a browser could visualize the size and location of certain elements (e.g. <article> and <section>) on the scroll bar. The key here is that it is the browser doing it so that you have a choice in wheter you want it or not on all websites.
Re:Microfeatures I Love in Blogs and Personal Websites by zzo38computer on Tuesday June 25, 2024 @01:29PM (#40791148)
So do I, which is why it can be a user preference. (One way might be to display marks on the scroll bar for the top and bottom of the article, therefore giving you both advantages at once.)
Re:Microfeatures I Love in Blogs and Personal Websites by FullGarden_S on Monday June 24, 2024 @01:45PM (#40778799)
I think horizontal progress bars are annoying but I think I'm fine with vertical progress bar to the side on heading navigation, highlighting the currently reading sub-heading.
Re:Microfeatures I Love in Blogs and Personal Websites by gnicholas on Monday June 24, 2024 @02:25PM (#40779212)
Funny, I quite like progress bars! I agree that they can be too bold at times, but it's nice to have a visual indicator since scroll bars have disappeared (especially on mobile).
Re:Microfeatures I Love in Blogs and Personal Websites by verelo on Monday June 24, 2024 @02:28PM (#40779234)
I'm with you. This was one of the least readable websites I've used in a while...I like some of these ideas, but many i actively dislike.
Re:Microfeatures I Love in Blogs and Personal Websites by throwaway894345 on Monday June 24, 2024 @02:43PM (#40779347)
> I really hate progress bars, they are incredibly distracting. One of the worst examples of front end programmers wasting their time reimplementing browser functions badly. I already have scroll bars! I do not need more scroll bars!

I'm just really glad that we seem to have mostly moved past headers that expand down in front of the content you're trying to read as you scroll down the screen. I can't think of a single justifiable reason for this behavior, but it was all the rage for a while. Also, I suspect the progress bars resurged because browsers became enamored with invisible or barely-visible scroll bars.

Re:Microfeatures I Love in Blogs and Personal Websites by ZeroGravitas on Monday June 24, 2024 @03:56PM (#40779985)
A less distracting version of the scrollbar might be a progress marker beside the text at 25% progress increments.
Re:Microfeatures I Love in Blogs and Personal Websites by ssahoo on Monday June 24, 2024 @05:26PM (#40780996)
This may be controversial, but i the blame browsers for letting them hijack the scrollbar. it should not a feature.
Re:Microfeatures I Love in Blogs and Personal Websites by account42 on Tuesday June 25, 2024 @09:25AM (#40788336)
Right, knowing the scroll position makes no sense for websites - it's yet another feature added for apps which should really have been declared out of scope of webbrowsers.
Re:Microfeatures I Love in Blogs and Personal Websites by fluffery on Thursday June 27, 2024 @12:10PM (#40812086)
I know my website doesn't need progress bars, its bare html, no javascript, no php, no need for it