4 ms·
This reminds me of a time when a site asked me to enable JavaScript for "a better experience". I had been defaulting to JS off for a long time due to how effect
by userbinator 11y ago
This reminds me of a time when a site asked me to enable JavaScript for "a better experience". I had been defaulting to JS off for a long time due to how effectively it stopped ads and other annoyances, and see these messages a lot, but this time I was momentarily curious for some reason; I did, only to be immediately assaulted with a bunch of ads, some crap following the pointer/scrolling, slide-overs, and other distracting annoyances that I would not at all call "a better experience". Fortunately I didn't get malware, but since then I've been much more cautious.
I know many are rather fond of sayings like "JS off will break most sites", but I challenge you to experience the web with it off by default and turn it on only for the few sites that absolutely need it; depending on what your most visited sites are, you may actually enjoy it. I find that the majority of sites are perfectly readable without JS.
On the other hand, I wonder if there are sites which use JS to hide the content and display a "turn off JavaScript to view this article", or "install adblocker to view this article"...
- gaius 11y agoJavascript, like Flash, doesn't do anything for the user, only for the developer or sponsor. Never did.
- csours 11y agoOk, I'll bite; How would you do Google Maps without JavaScript. (or DDG Maps if you prefer) Edit: Why downvotes?
- userbinator 11y agoThe interface would be slightly different but there's no reason why an interactive map viewer couldn't be done in pure HTML and CSS without JS, and then JS added for more enhancements like AJAX loading. In fact... it's been done eight years ago: http://www.appelsiini.net/2008/google-maps-without-javascript http://www.appelsiini.net/2008/google-maps-without-javascrip... http://www.appelsiini.net/2008/google-maps-without-javascript-part-2 http://www.appelsiini.net/2008/google-maps-without-javascrip... Look at where the map images are coming from, copy the link, and play around with the URL parameters. Yes, this still works. I also distinctly remember playing some HTML adventure games with similar pan/zoom/click interfaces before the millenium, and they didn't require JS either (nor took quite as long as the apps of today to load, on hardware that was probably an order of magnitude or more less powerful.)
- gaius 11y agoQuite a few Javascript fanboys downvoting me but let me tell you the truth, users don't care about animated page transitions or whatever. Just want to read the article or buy the product or whatever. Javascript does nothing for them, never did, just developers with too much time on their hands is all.
- MawNicker 11y agoUsers definitely care about scroll-to-zoom and drag-to-move. At least this one does. Also: auto-complete
- TeMPOraL 11y agoGoogle Maps is a wrong example. It's a (basic) web application, i.e. what is generally an interactive program that happens to be rendered in the browser. It's obvious that most web applications need JS on, because they're literally made of JavaScript. Web sites, however, don't need almost any JavaScript to work. 90% of it is either unnecessary design that distracts and confuses users, or actively user-hostile scripts (ad popups, trackers, interfaces designed to trick you into buying stuff, etc.).
- ssalazar 11y ago- in-browser chat - Google Docs - infinite scrolling (of course someone is going to say infinite scroll is a bad thing but it's clearly desirable to some) - input validation (before I click submit I can know that eg my desired username isn't taken) - others All of these need Flash or JS. For such a technically inclined community I'm always amazed at how folks on Hacker News insist that the Web remain a circa 1990s document browsing system.
- TeMPOraL 11y agoWhat's so surprising about it? That when I seek to learn information, I want to learn information in the most efficient way, instead of being slowed down by having to deal with all the artsy bullshit some designer put on the site? That, when learning, I don't like to be upsold shitty products and services I don't even need or care about? That when I seek to buy a product, I want a product that has a best price/value tradeoff for me and that I want to be done quick with it? Ignoring your first two bullets, which pertain to web applications - something completely different than web pages - you've just about listed the proper uses for JavaScript. Most of the JS out there is at best gratuitous design, and at worst actively user-hostile crap. Just visit a few random pages you use and ask yourself, how many JavaScript-powered features are there to actually help you achieve your goal in an efficient manner? Probably close to zero. Most websites are not designed with user's benefit in mind. They are designed to trick and exploit them. When 99.9% of the page size is hostile bullshit that only wastes electricity by spinning your CPU fan, you're really asking why so many people here ask for the pre-JS Internet back? The "circa 1990s document browsing system" may have been poorer in visual features, but it was much better a system than what we have today.
- yason 11y agoI do the same. uBlock allows me to disable scripting which is good because pages load faster and become more static. However, if a random page is unreadable because Javascript isn't there I just click a button (another extension) to reopen the page in an incognito window where uBlock doesn't run, and I get that full-blown modern browser experience but with no private data offered by my browser.
- DennisP 11y agoWhat is that other extension?
- yason 11y agoFor Chrome/Chromium, I currently have "Incognito This Tab". (I used an extension called "Incognito This" first but one of its updates asked me the approve an array of extra unnecessary permissions which I obviously declined, then proceeded to uninstall the extension. The one I use now isn't quite as convenient but does the job.)
- pdkl95 11y agoI've observed that suggesting that JS isn't needed for most pages is one of the more reliable ways to get downvoted on HN. This is usually acco9mpanied with a complaint that their "web apps" need JS, similar to the "JS off will break most sites" fallacy that you mentioned. The people making those claims probably believe that everything would break without JS, because they are looking at it from the perspective of a business or designer. If you consider your own site to be "broken" if the analytics/tracking doesn't work, or the fad "UX" effects are not rendered, they it's easy to believe that JS should be mandatory. This point of view is based on a fundamental misunderstanding of what the web is. HTML is more concerned with semantic abstractions than the specifics of how a page renders (use a pdf if you want to control the layout). This was an important design choice because it recognizes that the client is responsible for the rendering, which is free to completely ignore the suggestions made by the page. Unfortunately, far too many people don't want to accept that they don't actually have control over the browser.
- ghughes 11y ago> This point of view is based on a fundamental misunderstanding of what the web is. HTML is more concerned with semantic abstractions than the specifics of how a page renders (use a pdf if you want to control the layout). This was an important design choice because it recognizes that the client is responsible for the rendering, which is free to completely ignore the suggestions made by the page. You are describing the web as it was 25 years ago. No modern browser works this way.
- robin_reala 11y agoAre you including, for example, screen readers in that assessment? Because you’re wrong if you are.
- pdkl95 11y agoThat's the fundamental misunderstanding I was talking about. You don't know what browser is being used. Ever. You only know what the user agent decided to describe itself as and the requests it made to your servers. None of that tells you anything about what happened on the remote computer. Besides, "modern browser" is a complete undefined term that is obviously subject to a lot of interpretation and opinion. Usually this term is used as either a euphemism for "I really want to put spyware on my website" or "I only use badly-designed tools".
- a3n 11y ago> On the other hand, I wonder if there are sites which use JS to hide the content and display a "turn off JavaScript to view this article", or "install adblocker to view this article"... I've seen something roughly like this. If a site says "do something" in order to view content, like subscribe or bend over, I'll turn off CSS and sometimes see the content.
- greenyoda 11y ago"I'll turn off CSS and sometimes see the content" I've also noticed that in Firefox, going into "Reader View" will frequently turn a blank page into readable content (maybe because Reader View replaces the page's CSS with its own CSS).
- a3n 11y agoI used Reader View for a short while, but I noticed that it sometimes obscures content that was viewable before enabling Reader. Turning of CSS has been the most effective and consistent experience for me. Reader just substitutes a simpler CSS for the original CSS. Firefox: View/Styles/No Style. Or, single click: https://addons.mozilla.org/en-US/firefox/addon/disable-style-button/?src=api https://addons.mozilla.org/en-US/firefox/addon/disable-style...
- aplorbust 11y ago"I wonder if there are sites..." Imagine a future where common sense prevailed. "Sorry, your browser is too complicated. Be smart and downgrade to something more secure." (Replace "secure" with whatever word of improvement you like. Faster, smaller, fewer dependencies, etc.) The "modern browser" serves many stakeholders, the least of which is the user.