Earlier quoted context omitted.
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.
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.
Microfeatures I love in blogs and personal websites
411–420 of 444 posts
Re: Microfeatures I love in blogs and personal websites
#412Earlier quoted context omitted.
Have an icon appear on hover, and make every heading a hyperlink (even without styling), and have a table of contents with links to each heading (with styling). No need to dumb down your interface just for smartphone users.
What's the point of the icon if the heading is already a hyperlink?
Re: Microfeatures I love in blogs and personal websites
#413Earlier quoted context omitted.
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 command can be used if you want to delimit the article from the comments, and with commands such as , , etc you can delimit sections and automatically make a table of contents.
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
#414Earlier quoted context omitted.
I might cop a lot of hate for saying this, but it's been 10 years, it's time to stop mourning RSS and move on. I loved RSS, I sorely miss the protocol based internet rather than the web based internet we have now. I miss when my emails didn't have adverts pretending to be emails at the top of my inbox. Advertising was a lot less prevalent when applications had protocols and you could simply move to a different client…
> I might cop a lot of hate for saying this, but it's been 10 years, it's time to stop mourning RSS and move on. I can't comprehend where this notion that RSS is somehow "dead" is coming from. RSS is ubiquitous: every major blogging platform, aggregator, and other media site continues to offer feeds, including all of the major video sharing sites. The entire podcasting ecosystem is based on RSS. I consume HN, Reddit,…
But they can extended or innovated beyond!
There's just no candidates of note for any other strategies.
Re: Microfeatures I love in blogs and personal websites
#415> 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. This is unfortunately too often not the case, as people see fit to hide the default scrollbar and have something of their own that doesn't always show or is barely obvious. Though I agree with ToCs and showing progress that way, for pages long enough to make it useful rather tha…
Thank you for your thoughtful comment! > But again, the page doesn't make use of the feature it is extolling the virtues of! I said I loved the feature, not that I had the energy to implement it -- though I definitely should. :-) > Yes, though I might argue that such links, or a link to a ToC page for the group, belong in a more general list of related links. This is a good idea, and in my ideal world my site (and ot…
Definitely, though as others in the comments have suggested, it may be that Google downranks pages like this. Not that I care much for my search ranking.
I've heard the same but I've not seen trustworthy documentation stating that is an issue. It might be plausible that a date older than a certain point will make something be considered out of date, or more so than an article with a newer date, but if you think about it deeper it could be a bad indicator. How do you compare to articles without dates? I'd argue a dated article is better all else being equal, because the extra context makes it potentially more informative, some information doesn't date badly (at least not quickly), and how would the algorithms know what to do with pages containing multiple dates?
Re: Microfeatures I love in blogs and personal websites
#416One micro feature I implement on my blog that I would like to see everywhere: a single-page index of all the posts, like at https://blog.zorinaq.com Don't paginate this. I want to see at a glance the titles of all the posts the author wrote. I want to be able to ctrl-f to search these titles. Heck, even if you had 100k titles they could still easily be shown on one page, as it would compress to 1 or 2MB transmitted o…
I've got a variant of this on my own blog [1]. Full site contents generated automatically from (and grouped by) the content's tags.
To avoid the appearance of self-promotion, I'll balance this with an up-front warning that the actual content makes the opportunity cost of visiting debatable unless you're really curious ...
Re: Microfeatures I love in blogs and personal websites
#417Since this article mention's Gwern's site several times: While I admire Gwern's work a lot, I often find his website is trying to do so much that my browser will really struggle. Especially on mobile. It's bad enough I usually avoid reading there, which is a shame. I'm not sure exactly what causes it, but it might be a combination of page length with many layers of nested, richly formatted and embedded content.
> While I admire Gwern's work a lot, I often find his website is trying to do so much that my browser will really struggle. As a web developer, I often look at the HTML and CSS of interesting websites… I gotta say, I've never seen anything quite like https://gwern.net . It's an impressive looking site IMHO; but pretty much everything he's done is very user hostile and wasteful of the user's resources, like downloadin…
Similarly for those other numbers about selectors or classes. How much of a performance burden are those, really? Not the numbers punched out by some cargo cult calculator tool - what is the actual impact?
(I would try to compare cssstats.com's numbers for Gwern.net to sites we can all agree are "very user hostile and wasteful of the user's resources", like Medium.com or Substack... except it breaks and won't even report numbers.)
> It's an impressive looking site IMHO; but pretty much everything he's done is very user hostile and wasteful of the user's resources,
That seems like an extreme take. 'Pretty much everything'? There's no feature you like or find useful? It's all a waste? Your non-wasteful user-friendly version of gwern.net just throws out everything like the dropcaps, the code folding, the popups, the transclusions, the sidenotes, the backlinks, the link-icons...?
If that's not what you mean, can you point to a website which comes anywhere near Gwern.net in terms of supporting reading long, complex, heavily hyperlinked & annotated documents, and clearly outperforms it browser-wise?
> like downloading 14 fonts.
I'm not sure what page you are looking at, but what are these '14 fonts', exactly? It sounds like you're counting every font file without looking at them at all, and you are including, eg, the dropcaps which are subset to 1 letter per font file and so are efficiently only ~1-10kb each, or the link-icon font file, which is like 5kb compressed and saves requesting a bunch of SVG icon files, or the Quivira fallback (to avoid box Unicode garbage) which shouldn't be used in most pages but if it is, that's fine, because it's all of 3.5kb. Surely any performance woes do not come from downloading 5kb to draw a fancy 'A' at the beginning of the article, and is worth it for such a signature bit of visual style...
Even the regular font files are subsetted to save space. (I wouldn't be surprised if there are a lot of websites with just '1 font' which weigh more than those '14'.) So the font files do not seem like they are 'wasteful' to me.
Re: Microfeatures I love in blogs and personal websites
#418One micro feature I implement on my blog that I would like to see everywhere: a single-page index of all the posts, like at https://blog.zorinaq.com Don't paginate this. I want to see at a glance the titles of all the posts the author wrote. I want to be able to ctrl-f to search these titles. Heck, even if you had 100k titles they could still easily be shown on one page, as it would compress to 1 or 2MB transmitted o…
Re: Microfeatures I love in blogs and personal websites
#419Earlier quoted context omitted.
I think that is not so simple to solve. Limit it to some column width? Someone will complain that it only uses one third of their screen. Unlimited width? Someone will complain about whole width text. But the good thing is, that there is reader mode and evem if there wasn't, you could zoom in or resize the browser window or send to new window and resoze only that.
Yeah, most browsers do have reader mode now. I honestly don't love them because they're typically not customizable, and are sometimes too narrow for my taste. I wouldn't mind resizing the browser window except that with tabbed systems that means you're resizing all of the tabs at the same time. I tend to think that if you make the width something in the neighborhood of what the NYT, Medium, or other well-known sites…
Cumbersome, but one can change width of a single tab by using the inspector and using the responsive design mode.
Perhaps there is room for another Firefox feature to limit width of a page. Perhaps multi-column mode, where one can for example split the page in 3 columns and each column displays, what could not be fit on the previous column. And resizable columns maybe.
Re: Microfeatures I love in blogs and personal websites
#420Earlier quoted context omitted.
> While I admire Gwern's work a lot, I often find his website is trying to do so much that my browser will really struggle. As a web developer, I often look at the HTML and CSS of interesting websites… I gotta say, I've never seen anything quite like https://gwern.net . It's an impressive looking site IMHO; but pretty much everything he's done is very user hostile and wasteful of the user's resources, like downloadin…
I don't think any of the numbers you quote are really that meaningful. Like you are quoting IDs - what is the cost of an ID ? If all the IDs were stripped, would that even make a measurable difference? Really now. Similarly for those other numbers about selectors or classes. How much of a performance burden are those, really? Not the numbers punched out by some cargo cult calculator tool - what is the actual impact?…
I only investigated because someone in the thread mentioned they had a bad experience on a smartphone; now I know why.
Each font is another HTTPS request to the server; doesn't matter if they're subsetted or not. However, the combination of all the JavaScript and the multiple CSS files creates a total blocking time [1] of 5266 ms according to WebPageTest.
The page is blocked from rendering for over 5 seconds due to all of the crap he's downloading and the way he's doing it.
I didn't count where he downloaded one character out a font by subsetting. There are actually 30 @font-face declarations for fonts, some subsetted and some not.
Where he saved on downloading fonts, he used it up (and more) on the JavaScript and the CSS.
Someone using a browser that doesn't support the latest HTTP 3.0 protocol on a fast connection isn't going to have a good experience.
Source Sans Pro is available as a variable font; instead of downloading each individual weight, he could have downloaded just a couple of files and have all of the weights.
Ironically, after all that, he didn't pick a font that supported true small caps; he's using synthetic small caps, which don't look as good. There are plenty of high-quality free fonts with true small caps. It doesn't make sense.
The experience isn't good on mobile; it's not cool to have those previews keep popping up that I didn't ask for and that icon bar is inappropriate for small screens.
He has dozens and dozens of media queries; how about let's not download the crap I don't need on mobile? If I'm on smartphone, I don't want the drop caps and the other flourishes that only make sense on desktop/laptop sized displays.
Like the fake small caps, the typography doesn't look great on a smaller, high resolution screen.
A little knowledge can be a dangerous thing; his code is full of selectors like this:
.TOC > ul ul ul ul ul ul > li::before {
counter-increment: htoc_6;
content: counter(htoc_1) "." counter(htoc_2) "." counter(htoc_3)
"." counter(htoc_4) "." counter(htoc_5) "." counter(htoc_6) "\2006 ";
}
Among other things, it's so specific, making it very fragile; it also explains why his CSS is so bloated because there are hundreds of lines just like this. As you can see from the Lighthouse report, he doesn't bother to minify his CSS or JavaScript.Sure, for anyone on a recent device on a fast connection, it won't make a difference. But others on slower connections and older machines are going to wait noticeably longer and use more battery just to download and render his content. Hell, you could be on an iPhone 15 Pro in the middle of nowhere where all of you have access to is 3G or similar. Or on shitty coffeeshop wifi.
I left out the information from Lighthouse because I thought it was too inflammatory for HNers, but here goes:
On a scale 0-100, the performance score is a failing 44
First Contentful Paint 2.1 s
Largest Contentful Paint 2.6 s
Total Blocking Time 3,290 ms
Cumulative Layout Shift 0.461
Speed Index 3.6 s
Eliminate render-blocking resources Potential savings of 1,160 ms
Minify CSS Potential savings of 20 KiB
Minify JavaScript Potential savings of 82 KiB
Reduce unused CSS Potential savings of 52 KiB
Reduce initial server response time Root document took 680 ms Avoid an excessive DOM size 1,555 elements
Reduce JavaScript execution time 3.9 s
Minimize main-thread work 6.8 s
Largest Contentful Paint element 2,550 ms
Avoid large layout shifts 4 layout shifts found