4 ms·
Everyone has JavaScript, right?
- zer00eyz 3y agoLOL. Your average JS engineer needs to have all the browsers stripped from their machine. They need to be given the following VM's: 1. tool bar riddled version of windows that only has 8 gigs of ram and at lest one unreliable key. 2. A chrome book, but with all the filters of the nearst school system. 3. Chrome, on linux, 512mb of ram. And they get what ever the low end Samsung J series its a phone that makes calls as their cell (cause no cheating). I give that about 3 months till the web is fast again.
- KeplerBoy 3y agoWho knew devs/corporations don't optimize the web for people with no spending power?
- azeirah 3y agoI talk about this so much at my workplace and every time I mention slower phones I get laughed at by my boss. It's idiotic. "Just get an iPhone" Like... my dude, you rolled out of uni and started your own business and started out making at least double every month than normal people and you buy a new phone every 2 years. This is not normal. Our target customer is very literally the "average consumer", so this is the dumbest take I've ever seen. I try to minimize garbage collection and optimize React rendering but React is honestly quite difficult to get right when it comes to details in performance, even after a few years of experience :(. It doesn't help that I explicitly don't get time to focus on these kinds of details.
- KeplerBoy 3y agoMeh, are slow phones really an issue? I'm using a motorola android i bought three years ago for around $200 and it's absolutely fine for browsing the web and messaging. I could justify buying an iPhone (after all it comes down to a dollar a day over two/three years), but I don't feel like I have to.
- pjmlp 3y agoSlow phones on slow connections. Try to access the Internet on modern Germany while crossing through the country on train.
- KeplerBoy 3y agoFair enough. As an Austrian I'm deeply familiar with the experience in German trains but that doesn't get any better with an iphone either. I can assure that Apple's RF engineers working around here are suffering the same issues.
- pjmlp 3y agoIt gets better when Website designers take that into consideration.
- rglullis 3y agoWhy? What could possibly be so important to be done that can not wait until I am in a place with a faster connection?
- pjmlp 3y agoWhy is really the question of universe. Not everyone is you, and some people like to keep themselves busy reading stuff online.
- pavlov 3y agoA lot of corporations make their revenue selling in great volumes to people with little spending power. Walmart can’t afford to design their website to Louis Vuitton’s audience.
- dep_b 3y agoThey should also give all designers the tiniest still supported mobile phone screen, while enlarging the fonts by at least 20% and making the screen black and white. I wouldn't go as far as making the language German but.....well actually.....yes put the phone in German as well!
- lifestyleguru 3y agoDas ist keine Dzamdzung das ist Scheissung!
- lifestyleguru 3y agoThen comes one after another manager, PO, PM, designer. They want: privacy consent dialog, social media integration, newsletter and subscription prompt dialog, put all photos into a clickable gallery, floating auto playing video, and AI chat somewhere right there in the corner.
- mm007emko 3y agoWhich is very sad, if you think about it. None of that benefits me as a user, it's for their benefit.
- lifestyleguru 3y agoYou're not helpful at all, and not a team player.
- nonrandomstring 3y agoMature and professional developers would care what you thought, as a user.
- blindgeek 3y agoSomeone brought up the topic of JS and screenreaders upthread. Screenreaders can work fine with JS. The pain points are: 1. Use of JS to reimplement standard HTML widgets. This has broken my screenreader more times than I care to remember. 2. All of this user-irrelevant garbage, like the dialogs, the social media buttons, and so forth. I remember a few years back trying to pay my electric bill. Yes, I was using a JS-capable browser. I couldn't actually pay my bill, but there were plenty of "follow us on Facebook" and similar. Like seriously, folks, I just wanna send you money. Really, this should even be something I could do without JS. Another example: we do online shopping at https://www.fredmeyer.com https://www.fredmeyer.com. Their website is absolutely terrible, with all of the busyness, some of it user hostile. Seriously folks, I just want to give you money for product, not follow you on facebook. Some sites get it really, really right. I play chess on lichess.org. That site requires JavaScript. And I don't see any way that it could possibly be avoided. But it works beautifully with my screenreader. It's snappy too, even under Firefox on a Raspberry Pi. I used to be a hard core "screw JS" guy. I've softened my stance, because I know it can be used correctly and to great effect.
- deleted 3y ago[deleted]
- Kwpolska 3y ago> Does the corporate firewall block JavaScript? Because loads of them still do. [citation needed] > Does their ISP or mobile operator interfere with downloaded JavaScript? Sky accidentally block jQuery, Comcast insert ads into your script, and if you've never experienced this before, drive to an airport and use their wifi. Ever heard of HTTPS? > Do they have addons or plugins installed which inject script or alter the DOM in ways you didn't anticipate? There are thousands of browser extensions. Are you sure none interfere with your JS? If the user installs an extension that breaks the web, it’s the user’s fault, and the developers should not cater to them.
- karma_pharmer 3y agoEver heard of HTTPS? Ever heard of SSL MITM Proxy? Required by law (and corporate compliance departments) in many industries. Also, cloudflare. They are the MITM for what, like 80% of the internet now?
- red_admiral 3y agoCloudflare does not fiddle with or inject JS without the server's consent. They're not comcast.
- karma_pharmer 3y ago/me laughs so hard that milk shoots out of his nose
- nolist_policy 3y agoThis. The Cloudflare captcha page exists and will send you in an endless loop while you're on a 3g connection.
- username923409 3y agoNot sure if this is the same kind of "endless loop" that I've experience on the Cloudflare captcha page; while on a VPN, the only way I can get past the "I am a Human" captcha is to refresh the page and click the area where the checkbox appears as fast as I can with my mouse before it even appears. It might take two or three tries, but it hasn't failed yet. I have no idea why this works so well, but I haven't found another way (other than getting off of my VPN) to get past this screening page.
- geuis 3y ago> People still do. Links to an 11 year old article.
- nxobject 3y agoIn the article's defence, it _was_ written around early 2015. [1] [1] https://web.archive.org/web/20240000000000*/https://www.kryogenix.org/code/browser/everyonehasjs.html https://web.archive.org/web/20240000000000*/https://www.kryo...
- agile-gift0262 3y agoI still do. In fact, hello from a browser with JavaScript disabled
- devprogrammer 3y agoI mean if the 2% of the whole internet does not have JS, and they are not a part of your target demographics, then it's not a problem in a business sense. If they are, then yup, you should be prepared. This post is great in terms of making you aware that even in near perfect conditions JS might be not available, but the impact and solutions should be considered on a case-by-case basis.
- andrewstuart 3y agoI feel like this is trying to convince me to support clients without javascript. The answer is no. Absolutely not. If you do not have javascript then I don’t want you as a user. I don’t care why. Javascript or no service.
- sccxy 3y agoI have some pretty popular personal web app and I still get angry e-mails from people using Windows XP that my site is broken and I am terrible developer for making broken websites. I wonder how they even manage to browse web daily. Or they have to send daily hate mail for developers...
- andrewstuart 3y agoI'll support latest version minus one of major browsers. That's all I'll support - if any user has a problem because they are on an old version, they should use some other website instead of mine. Lack of JavaScript or latest web browser is a user problem.
- dgan 3y agothat's just aggressive and lazy.
- sccxy 3y agowhy?
- extra88 3y agoOnly supporting the very latest browsers is basically a "works on my machine" attitude. That's lazy. It means not supporting 11% of iPhone users and 18% of iPad users [0]. That's aggressive. Adoption of evergreen browsers is also slower than that. Chrome 124 was released this week and even though 123 has been out for a month, the majority of desktop users are still on 122. [0] https://developer.apple.com/support/app-store/ https://developer.apple.com/support/app-store/
- porcoda 3y agoJS is both the best and worst thing to have happened to computing in the last decades. Great creations based on it, but I constantly feel that dev community comes from a completely different planet than me when it comes to thinking about quality, resources, and priorities. I often feel that the greater JS community does more harm than good when it comes to what can be built atop that ecosystem.
- 63stack 3y agoI have seen so many of these "you shouldn't do this completely normal, accepted and usual thing in $current_year because of corner case XYZ", but who is the target audience? As a developer, I don't have the authority to decide I'm going to spend resources on making the site work without javascript. I can sneak in some extra hours, but continuously testing if the site works without it, and getting other developers to do the same is not a small task. Managers? They are not going to read this.
- andrewstuart 3y agoThere are lots of people in the world and some of them have unusual perspectives on how the world should work.
- nonrandomstring 3y agoI did a double-take because there's two ways to read that. We have an unusual, thin slice of humanity here on HN, a minority with disproportionate power to impose its will upon billions while calling others with different lifestyles "marginal", "edge cases", and so on.
- cranberryturkey 3y agoi just hate typescript. js is ok
- bigyikes 3y agoi hate javascript, typescript is ok i don’t understand the hate for TS. after the initial learning curve, it has only made my life easier. i can’t imagine making a large refactor on a JS code base - the fear of breaking some unknown contract keeps me up at night
- 7bit 3y agoBecause there are thousands of settings that have to be considered for the transport to work correctly. And for every packet out there, these settings need to be correct. Then debugging is also difficult, because stepping through the TS code doesn't always work as expected.
- dvdkon 3y agoYou only need to get those settings right once, and only at build time. I won't defend the mess that are web build systems, but your assertion that things need to be right "for every packet" is false. And while I've had no trouble debugging TS code, you could always just debug the generated unminified JavaScript instead.
- 7bit 3y agoI meant package, not packet. And no , you don't have to get it right only once. I started a svelte app with TS, and when I tried to add Prisma, it took me a lot of time and research to get the settings correct, so everything would work out. And I wasn't alone. There were numerous posts, and issues on GH about that same thing, so I was far from alone. And debugging JS is one way of doing things. But when I write code, I want to debug that code. Not the transpired stuff. It just adds a layer of annoying complexity, that otherwise wouldn't be there.
- lifestyleguru 3y ago
- Mandatum 3y agoMaybe the author can strategically synthesize something novel, and still relevant. This is like arguing about cloud and hosted infrastructure in 2006.
- red_admiral 3y agoI've noticed a lot on popular topics on Scott Alexander's ACX on substack, once comment numbers reach the high 3 digits or so, the page gets unbearably slow and sometimes even crrashes my browser tab when I try and scroll or select text. I haven't bothered to try and debug what's going on - my guess would be they're bubblesorting the comments or something dumb like that - but I do know that if you turn JS off for that site, the post itself loads instantly, and shows you the whole thing at once rather than firing event handlers as you scroll down or click or select text. So +1 to substack for working fine without JS enabled (even for subscriber-only posts) but if someone from there is reading this, can you take a look at what's causing the problem in the first place?
- 8organicbits 3y agoIf you only use JS for progressive enhancement or optional features, you don't need to worry if your user has JS or not. Most websites are inherently text, most interactions are form-like. Unless the website is a web application, which does complex and dynamic things, JS seems like it makes websites worse. JS riddled sites are slow, have poor usability, and often are over-animated to the point of visual distraction.
- guidopallemans 3y ago> most interactions are form-like I'd say that most interactions are link-like, but that proves your point even further.
- 7bit 3y agoI feel like the author is stuck in the 2000's where JS should indeed only support the browsing experience. But we're in 2024 we're JS has reached almost the same level of support in every major browser. Many of the arguments are just plain stupid. The JS hasn't loaded yet? So what about images? If your HTML document loads, your JS will too. If you're unsure about that, don't load from sources you don't control. And if a MITM injects code into your JS, then they inject that into your HTML as well...
- Dalewyn 3y ago>The JS hasn't loaded yet? My dad is an avid reader of news articles on his iPhone. That's mostly text with some photos here and there, ostensibly anyway. Whenever I happen to see how much traffic he downloads over the better part of a working day, somehow he racks up almost if not over a gigabyte. And that's with iOS set to data saving mode. 1GB. For what should be mostly textual and static image content. What the sincere fuck? The only reason people need phone data plans with sky high data speeds and caps, aside from streaming, is because malvertisements and JavaShit waste away most of it. This is fucking cancer.
- echoangle 3y agoThere’s no way even 10% of this is due to JS. It’s probably mostly images and videos which make up this data usage.
- matt-p 3y agoExactly. Even of the part that is JavaScript it's mostly going to be tracking and ads. GA, segment and so on. Use of react and fetch is not unreasonable in 2024 folks.
- mirekrusin 3y agoMissing tab sleeping - js won’t ie fire your setTineout if tab went to sleep after being idle for a while.
- dgan 3y ago>> How many times have you had a mobile browser hang forever loading a page and then load it instantly when you refresh? At least once per day, it's insane. I am not a front dev, so I never really thought about it. I often just click a news website, and stop the connection manually to read it, instead of continuously waiting for the "proper" response
- tisc 3y ago> Have they switched of JavaScript? Because people still do. As an experiment I tend to disable JavaScript periodically. It is amazing how fast and responsive applications become. The amount of cruft that is downloaded is insane! Typically my experiments end after a month or so, because a lot of website don’t work _at all_ with JavaScript disabled.
- dfawcus 3y agoI generally browse with JS disabled, most things I read "just work". To achieve this I make use of uMatrix, with the global default being JS disabled, and CSS disabled. Then for sites where I consider it worth the cost, and value the content, I selectively enable JS. Now one other reason I could give for why not JS would be screen readers, I imagine in content does not render without JS being active, those readers may well be rendered inoperative. Or at best very poor to interact with.
- anste 3y agoThis is why I think JS Naked Day is a cool concept. It's happening on Apr 24th. https://js-naked-day.org/ https://js-naked-day.org/
- peter-m80 3y agoEveryone = 99.99%
- Piraty 3y agorelated: JavaScript Naked Day https://news.ycombinator.com/item?id=40104842 https://news.ycombinator.com/item?id=40104842 i browse the web with firefox + ublockOrigin with 3rd-party {scripts,frames} blocked by default. it is a shame how many websites will show their main asset (text) not until i allow some (or all, if in a hurry/impatient) foreign site java script. The post touts for an 'escalator' pattern, which is a good pattern to follow (for many things unrelated to web as well).
- rabbits_2002 3y agoOk but what are the actual stats? I can’t imagine more than 1 percent of users have JS disabled. I think I can live without that.
- deleted 3y ago[deleted]