3 ms·
I propose that someone starts a 'nojavascript.club'
by kwhitefoot 6y ago
I propose that someone starts a 'nojavascript.club'
- sneak 6y agoI find that javascript is fine when it adds features, but it should not break a webpage if disabled, or hard-require execution of js to render simple text and images, something the web’s been good at for decades. My own site is like that. It has javascript that runs if you use such things, but it still loads and works great even if you don’t.
- yoz-y 6y agoI agree. JS is good for things like nicer footnotes.
- arexxbifs 6y agoYeah, a bit ironic that a site lamenting the bloated web is dependent on javascript. But I appreciate the overall sentiment.
- alpaca128 6y agoJavaScript itself isn't even that bad. Somehow people still manage to blow it up beyond any reason. This site here uses JavaScript, but so little it's hard to even notice it.
- Seirdy 6y agoA non-exhaustive list of good practices for webpages that focus on text: - Final page weight under 128kb, without compression - Works in Lynx, w3m, Elinks, Netsurf, Dillo, and most HTML-to-markdown converters - No scripts or interactivity (preferably enforced at the CSP level) - No cookies - No animations - No fonts–local or remote–besides sans-serif and monospace. - No referrers - No requests after the page finishes loading - No 3rd-party resources (preferably enforced at the CSP level) - Supports dark mode and/or works with most “dark mode” browser addons I practice all of the above on my website, and encourage everyone to do the same on theirs. Also, literally every site on Gemini/Gopher has all of the features above (except "browser support" applies to Gemini/Gopher clients).
- Seirdy 6y agoI decided to expand this to its own article: https://seirdy.one/2020/11/23/website-best-practices.html https://seirdy.one/2020/11/23/website-best-practices.html. Discussion at https://news.ycombinator.com/item?id=25193874 https://news.ycombinator.com/item?id=25193874