by susam · 1y ago · 0 comments
$ lynx https://mastodon.social/
[…]
To use the Mastodon web application, please enable JavaScript.
Alternatively, try one of the native apps for Mastodon for your
platform.
The C2 Wiki does not load either: $ lynx https://wiki.c2.com/
[…]
javascript required to view this site
why
To their credit, at least they use the <noscript> tag to display the above notices. Some websites don't even bother with that. But there are many old school websites that still load fine to varying degrees: lynx https://danluu.com/ # Mostly okay but some needed spaces missing
lynx https://en.wikipedia.org/ # Okay, but a large wall of links on top
lynx https://irreal.org/blog/ # Renders fine
lynx https://libera.chat/ # Mostly fine
lynx https://news.ycombinator.com/ # Of course!
lynx https://sachachua.com/ # Mostly fine
lynx https://shkspr.mobi/ # Renders really well
lynx https://susam.net/ # Disclosure: This is mine
lynx https://norvig.com/ # A classic!
lynx https://nullprogram.com/ # Also pretty good
If you have more examples, please comment, and I'll add them to this list in the two hour edit window I have.While JavaScript has its place, I believe that websites that focus on delivering primarily text content could prioritise working well in TUI browsers. Sometimes testing it with text-based browsers may even show fundamental issues with your HTML. For example, several times, I've seen that multiple navigation links next to each other have no whitespace between them. The links may appear like this:
HomeBlogRSSAboutCodebergMastodon
Or, in a list of articles, dates and titles may appear jammed together: 14 Mar 2025The Lost Art of Dual Booting
15 Mar 2025Some Forgotten Features of Gopher
16 Mar 2025My Favourite DOS Games
The missing spaces aren't obvious in a graphical browser due to the CSS styling hiding the issue, but in a text-based one, the issue becomes apparent. The number of text-based web users may be shrinking, but there are some of us who still browse the web using tools like lynx, w3m, and M-x eww, at least occasionally.Unlike computer interfaces, the web was never text-first. It was graphical from the start. The first browser was in a GUI, not a terminal.
Sites have been hobbled/broken on Lynx since the very beginning. It's neat and can be convenient to have a browser that works in your terminal for simple stuff, but the web was never designed for that. It's natural and to be expected that many sites will break. The burden is really on Lynx to do what it can to support sites as they are, rather than sites to try to build compatibility with Lynx.
It's kind of like, there are programs to "view" a PDF in the terminal, or at least its text content. But PDF authors shouldn't be expected to optimize the order text is presented for those programs. That's not what PDF was ever meant for, even if you can get it work sometimes.
There is nothing "natural" about software development at all. It was an active choice to hobble the internet as a browser to sell ads via interactive apps.
The first browser ran on NeXT, graphically. It did not grow out of the terminal. And the very first publicly formalized definition of HTML in 1993 did already include the img tag:
Even back then, the book recommended testing your web site in Lynx for two reasons:
1. Web sites are supposed to gracefully degrade when viewed in browsers without support for advanced features.
2. Accessibility matters, and while most of us don't have access to or know how to operate screen readers if we can comfortably view and navigate a web site in Lynx there's a pretty decent chance that it'll be usable with a screen reader.
It's been ~30 years since then and those reasons still apply just as well. For the vast majority of web sites which do not have any need to be interactive webapps there's not really any good reason for it not to be perfectly usable in a text-only browser, and if it's both readable and navigable in a text browser it should also be with a screen reader.
I think what's more important is that a significant portion of web pages have no more complex layout than a newspaper or slideshow, so why not make them easy to parse? Not only would it make browsing in Lynx easier, but it would work well with screen readers, which are the only way some people can browse web pages.
Of course the web has evolved and has uses other than reading/absorbing information (some of them great) and multimedia content is valid, but it does seem to have become harder to find substance in amongst all the style.
When I'm surfing the web it's still usually words that I'm looking for. I think that may be going out of fashion.
People abusing HTML for the purpose of styling is the whole reason for CSS existing. A well written HTML document should have a very clean structure. The CSS has the ability to do all the crazy graphical styling. The old CSS Zen Garden was an amazing demonstration of that, an incredibly well structured and mostly semantic HTML document could have any number of crazy styles only by varying the CSS.
Bullshit HTML loaded with bullshit CSS frameworks generated by megabytes of bullshit JavaScript is a complete failure of web devs to master the medium. Unless a web page is absolutely reliant on a graphical interface (Google Maps, a game, etc) there's no reason that it shouldn't render passably in lynx. Even in those cases it should have noscript guardrails to provide at least an explanation as to why it can't work.
Just in case you haven’t tried it, the blog also works really well with terminal-based browsers, such as Lynx and ELinks. Go ahead and give it a shot. The header that normally appears at the top of the page is actually at the bottom of the HTML document structure. It’s out of the way for browsers that ignore CSS.
[1] https://nullprogram.com/blog/2017/09/01/Which works perfectly, including navigation (next/prev/parent). The perfect way to use javascript to enhance a site (collapsing threads etc) but not require it.
HN is hosted on a single machine in a colo somewhere (with a backup elsewhere), yet has far more value than the majority of sites 100 times as complex.
All this to say, HN shouldn't an example to blindly follow.
I do prefer to surf with js disabled, and in most cases it actually works pretty well.
But the lack of non-js mastedon has pretty much stopped me from reading posts on the system. I can surf github, and this site, with no js, but mastedon is a no go.
The conversion of the internet into a scam ad distribution system is the primary culprit leading to the massive proliferation of js, along with the use of overly complex "frameworks" that could often be static html, I don't know what mastedon's excuse is...
I wouldn't be surprised if it's growing in absolute numbers, in relative numbers it stays at essentially 0% where it always was.
For the c2wiki, there are clones of it which work with plain text, but I can't remember the alternative domain. You can DDG/GG it, tho.
But yeah, I wish people were more hesitant over-using JavaScript.
Why would this be considered "an issue" or "a problem in your HTML"? TUI browsers are really a fun novelty and not much more, I'd be shocked if even the largest sites in the world receive more than 1000 visits per day from lynx or eww or any other combined. Unless you have a compelling reason to think that your site will be used by terminal browser fans, there is no reason whatsoever to care about how your HTML renders without CSS. Even screen readers would not have problems properly reading links not separated by spaces correctly.