News for hackers. Stuff that matters.
Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @03:22AM (#36268440)
> You need to enable JavaScript to run this app.

What app? What am I missing? Why don’t devs put in the minimal amount of effort into their noscript to explain why I should bother allowing scripts on this site?

Re:Emoji Kitchen by Yondle on Saturday June 10, 2023 @03:26AM (#36268454)
You been on the internet before bud?
Re:Emoji Kitchen by arcanemachiner on Saturday June 10, 2023 @03:55AM (#36268595)
Of all things to worry about when designing a website, the basically-zero percentage of people who voluntarily disable JS doesn't even make the list.

I view the noscript tag more along the lines of "Hey, your browser isn't working" than "Here's a sales pitch for my site for you and the 2 other people who disabled Javascript".

Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @06:32AM (#36269314)
As time has gone on, more and more folks recommend disabling JavaScript as the default behavior and opting in on a per-site basis. This is easy to do with uBlock Origin. This isn’t a broken browser behavior but a conscious decision for the security and privacy of some users. Leaving one or two sentences isn’t much, and the “sales pitch” will help with SEO for web crawlers that don’t execute scripts.
Re:Emoji Kitchen by speedgoose on Saturday June 10, 2023 @11:04AM (#36271130)
Aren’t web crawlers of all search engines executing JavaScript nowadays ?
Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @12:27PM (#36271912)
Nope. You can see it in Brave search results. It’s also a massive barrier for a small start-up to index the web if it has to expend resourses to download and execute JavaScript. More generally, there’s also web scrapers (the good kind), TUI browsers, old hardware that shouldn’t be obsolesced just because of “browser target = current browsers only” (with this being more important for informational type websites rather than web applications which could just have a small blurb about what the site is/does tagged with its “Enable JS for X-App”).
Re:Emoji Kitchen by speedgoose on Saturday June 10, 2023 @01:50PM (#36272853)
I understand your point about supporting old hardware but the economics or the mental health don’t allow to support any kind of hardware forever.

I had to support obsolete computers running internet explorer too many times in my life and I am glad that I don’t have to right now.

We also eventually stopped the Minitel, even though it was still used by a few people.

Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @03:17PM (#36274006)
IE7 was the oldest version I ever had to support--I understand it being a pain and there is always a cut-off point. This said, not JavaScript is often an option too for entire categories of the web ...and I say this as someone whose career has mostly been built on CSS & JavaScript. There’s a lot of old machines that should and could be able to read the sites we have today if wasn’t for that pesky scripting language being used where it didn’t need to (looking at you blogs and news sites that blocked your image loading behind JavaScript even though native loading="lazy" exists and would be a progressive enhancement).
Re:Emoji Kitchen by arcanemachiner on Saturday June 10, 2023 @02:44PM (#36273582)
In retrospect, you're definitely right and I will make note of that in the future.
Re:Emoji Kitchen by kissgyorgy on Saturday June 10, 2023 @03:56AM (#36268598)
It's really tiresome reading all the crying from no-JS snobs in a world when you cannot use most websites without JS. Move on or turn on JS.
Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @06:25AM (#36269280)
I opt in to JavaScript--not fully disabled. When there’s a compelling reason to enable it, I do, but if a site shows me nothing, it gives me nothing to work with. I run TUI browsers semi-regular though and they’ll never show me anything. Slap on that non-Google web crawlers aren’t executing JS & your site will get worse SEO too.
Re:Emoji Kitchen by Biganon on Saturday June 10, 2023 @04:30AM (#36268747)
Serious question, could you explain why you disable JS in 2023?

JS cannot access your files, your browser certainly protects you against cryptomining...

JS is not always eye candy, there are many things that cannot be done with forms alone. If you want a terrible web experience, feel free, but it's not the devs' job to write an exposé to explain why they had to use JS.

Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @06:43AM (#36269375)
A lot of the web is full of sludge—blog spam, analytics, advertising, unnecessary motion. A lot of these files are large and take time to execute for marginal benefit (or negative benefit with tracking). Opting in on a per-site basis can save you the rare threat vector, but also prevent the sludge. When it’s clear the JavaScript provides value (or even good eyecandy), I do the two clicks to enable it and refresh; a blank page generically saying “Enable JavaScript” isn’t telling me anything and feels more like a warning to stay away. Exposé implies it needs to be anything beyond a line or two.

Not everyone wants to download and execute programs from the internet every time they visit a site.

Note: the ‘web’ is comprised of both web pages & applications where web applications obviously need JavaScript, but web pages are better served with JavaScript as an enhancement. In the post here, we have a web app, but there’s nothing that tells me what it is and with so many site’s running these project generator defaults of “You need to enable JavaScript to run this app”, it’s impossible to tell if this is an actual application or another SPA that should have just been static content.

You could also check out 2018 articles praising uBlock Origin for allowing users to disable JS by default in v1.17.0 such as https://www.zdnet.com/article/ublock-origin-gets-option-to-b...

Re:Emoji Kitchen by lostlogin on Saturday June 10, 2023 @05:01AM (#36268880)
> why don’t devs put in the minimal effort

You can build what you want. Xavier says this on his site:

My name is Xavier Salazar (he/him), and I love emoji. I currently work full-time at @slackhq and work remotely from Portland, OR I spend more time than my manager knows creating and perfecting the silliest little ideas for the internet. I've been able to cover the costs of these projects by myself, but, at the end of the day, they are not free. Supporting me, even only for a couple dollars, goes a long way in making sure I can continue to create and support these projects.

Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @06:29AM (#36269297)
> > why don’t devs put in the minimal effort

You left out the noscript part. I’m not implying the project as a whole is minimal effort.

It would be nice to at least see a small explanation of what I as a user am missing out (one or two sentences), or the bare minimum is to at least name the application in the noscript instead of leaving the default text of create-react-app (or similar project generator).

Re:Emoji Kitchen by das_keyboard on Saturday June 10, 2023 @09:21AM (#36270231)
How would this change anything?

Would it really increase your trust in this site, if the site itself told you it's content?

A malicious actor would just put "Enable JavaScript now or you will miss out on cool prices" or something like this.

"noscript" shouldn't serve any other means but telling you that javascript is disabled.

Re:Emoji Kitchen by toastal on Saturday June 10, 2023 @12:39PM (#36272052)
No script is also a place for normal fallbacks where relevant in a multi-page app such as a static image instead of an interactive SVG. You can let crawlers and scrapers that don’t execute JavaScript know what content should be there. There’s still malice in many noscript elements embedding fishy tracking pixels.

If this application said “Emoji Kitchen let’s you combine existing emoji to create new hybrid emojis” I could decide if I think that’s silly, probably legit, and it’s worth the ‘risk’. It would also assist the aforementioned crawlers and scrapers.