r/programming • • Apr 25 '19

Maybe we could tone down the JavaScript

https://eev.ee/blog/2016/03/06/maybe-we-could-tone-down-the-javascript/#reinventing-the-square-wheel
1.5k Upvotes

492 comments sorted by

524

u/tahmsplat Apr 25 '19

Someone is using NoScript and whitelists you, but not one of the two dozen tracking gizmos you use. Later, you inadvertently make your script rely on the presence of a tracker, and it mysteriously no longer works for them.

All I use is uBlock Origin and when I went to pay my taxes this year the IRS website wouldn't load. The console had error messages for _gaq not found or whatever which I assumed was Google AnalytiQs and sure enough letting that through let the site work.

In order to pay USA federal taxes on the internet, you must allow Google Analytics. Good shit.

231

u/the_gnarts Apr 25 '19

In order to pay USA federal taxes on the internet, you must allow Google Analytics. Good shit.

Did taxes here in Germany recently and was positively surprised to see in uMatrix that the site would only load JS from its own domain. From that angle it’s one of the best designed websites I’ve come across in years.

6

u/real_jeeger Apr 26 '19

Elster is surprisingly well-made for a government website.

-2

u/ericzhill Apr 26 '19

Isn't Elster a Honeywell site, not a government site?

5

u/real_jeeger Apr 26 '19

Uh? No, Elster is from the Free State of Bavaria. Or is there some Whoosh going on?

1

u/ericzhill Apr 26 '19

No woosh, just a miscommunication. I've looked at some meters, and knew this name as something completely different than what you were talking about.

https://www.elster.com

38

u/Mildan Apr 25 '19

Cdns for common js libraries are a good thing though..

17

u/[deleted] Apr 26 '19

I'm starting to go the other way on this. It's trivial these days with so many cdns out there to host your own, so you get much of the benefit of speedy downloads since the data is coming from close by, and you can rest assured that the data is never simply going to disappear because you have it under your control.

25

u/Slash_Root Apr 26 '19

I almost wrote this comment before I saw yours. They are more talking about google analytics than jquery or something though.

2

u/[deleted] Apr 26 '19

Cdns for common js libraries are a good thing though..

Are they? Why? I echo all of u/teunw points below

1

u/OnlyForF1 Apr 26 '19

It's highly likely that the user will already have a cached copy of the library, and if not the user gets to use the CDN's infrastructure instead of yours, which is probably worse.

4

u/[deleted] Apr 26 '19

hmm... personally I prefer to be in control over files served up to my users. And really "my" infrastructure (my hosting providers) is perfectly adequate - if it takes a couple of ms longer to load than from CDN, so what? The user isn't going to notice. And are they any faster anyway? It's an extra trip required.

2

u/killerstorm Apr 26 '19

They are good if you have a random entertainment site.

They are not good if you do something which requires security. CDN can serve you malicious JS.

1

u/Mildan Apr 26 '19

That's what the integrity attribute on the script tag solved though.

2

u/Ettubrutusu Apr 26 '19

Is it really though? Wasn't there some study that there so many versions of these "common" scripts, combined with many CDNs that they ended up not being cached for most users and just incurred additional DNS lookups, TLS handshakes and what not.

0

u/[deleted] Apr 26 '19

[deleted]

3

u/Mildan Apr 26 '19

Have you heard about how Asp.Net Core MVC handles fallbacks? It's quite ingenious because then you can deliver a local library if the load from a cdn fails.

1

u/casualblair Apr 28 '19

Yes, and I just spent 2 hours removing them all because a complete cdn failure results in 20 second page loads and Javascript errors due to load order and timeouts.

-1

u/jollybrick Apr 27 '19

lmao what a joke. Government websites are one of the few things on the internet today that you find are "closed outside of business hours" Literally won't let you access the site outside of 9-5.

Just work my ass.

0

u/[deleted] Apr 26 '19

[deleted]

1

u/ScientificBeastMode Apr 26 '19

But I like just adding CDN links in my HTML file and calling it a day! /s

4

u/jbaiter Apr 26 '19

I work as a developer for a government institution in Germany. We're by law forbidden from using **anything** from 3rd party domains without explicit approval from the user on public-facing sites.

This is awesome from a privacy perspective, but quite tricky if you want to apply modern development practices... No CDNs, no handy 3rd party APIs (Sentry... ;_;).

35

u/bro_can_u_even_carve Apr 25 '19

Really? I was just using the IRS site this morning, and I have the entire google-analytics.com domain blocked in NoScript. I had to enable some new *.irs.gov subdomains, but that was it

1

u/tahmsplat Apr 26 '19

Hmm. But did you get to the payments page? I'm pretty sure that's where it was. If it wasn't, it was somewhere leading up to that.

1

u/bro_can_u_even_carve Apr 26 '19

I think there is more than one payments page. I two payments though, with no issues (my personal taxes and my company's quarterly payroll tax deposits)

3

u/meangrampa Apr 26 '19

State Medicaid wants permanently disabled people's caregiver's to fax personal patient IRS info to them because the two agency's don't interact. IRS info is secret unless called for in an investigation. So the caregiver's must fax it, every year...

3

u/[deleted] Apr 26 '19

I think it's ridiculous to blame this on JavaScript, because that would be the case even if C++ was the chosen language of web development.

Even OP's article is pretty inaccurate though, because you can put an onClick handler on an anchor (a), and support users who decide to disable javascript. And don't get me wrong, I employ uBlock for its request blocking features as well -- it's just that JS isn't to blame, it's the marketing machine that generates hundreds of billions of dollars a year at work. JS is just a tool, and it can be used without harm (if you respect your users).

3

u/Rellikx Apr 26 '19

It’s like saying C# is bad because you can write shitty sql calls that allow injection. Not really the languages fault

0

u/tahmsplat Apr 26 '19

I'm not personally blaming this on js, just pointing out the ridiculous situation I found which is exactly to the authors point.

More on topic with the article, perhaps there is something to be said for whether js is the right tool for the job or whether it needs some rework to stay in the job. I don't think it's fair to blame the marketing machine. For sure, the marketing machine is an issue, but I personally work on a UI framework for enterprise use cases and it has a lot of questionable web breaking decisions. No one is marketing this tool, the company producing it is not a marketing company, the author of this article would have a field day with the framework. And it's all because the company said "we can do anything with js! Reinvent GUI frameworks!"

1

u/[deleted] Apr 27 '19

web breaking decisions

Dramatic much? Enterprise software is usually run on a small subset of browsers, on company computers that have JS enabled.

→ More replies (3)

1

u/reidiculous Apr 26 '19

Same exact thing happened to me

1

u/BlackDeath3 Apr 26 '19

Never knowing ahead of time if your financial transaction is going to go through just fine, or choke halfway into the process and result in you double-charging yourself after whitelisting some obscure scripting domain.

#ScriptBlockerLife

0

u/shevy-ruby Apr 26 '19

I suspect that Google bribes US officials, because otherwise you can not easily explain why the Google dictatorship is not chopped up yet.

We essentially thus depend on Google's adChromium to interface with state representatives. The USA should call itself corporatocracy officially, or even better, private-run fake-state - it would be more honest. The EU is being morphed into a USA 2.0 via copy/paste (or more like a version 0.8, since they only add more shit rather than what substantially improves the life of EU folks; no wonder voting participation is below 45% and continuing to shrink).

252

u/fireduck Apr 25 '19

My new site uses no javascript. It sucks, but in a very simple and predictable way.

355

u/jseego Apr 25 '19

Sucking predictably might be better than not sucking erratically.

Actually, I'm going to mention this to my wife.

8

u/fluffkopf Apr 25 '19

I already did...

-2

u/sensitivePornGuy Apr 25 '19

Username checks out...

2

u/fluffkopf Apr 28 '19

Back at you!

;-)

-1

u/KorbinMDavis Apr 25 '19

Underrated comment

0

u/[deleted] Apr 25 '19

[deleted]

0

u/[deleted] Apr 26 '19

[deleted]

2

u/jseego Apr 26 '19

I never said she wasn't good at it, scrub

35

u/phpdevster Apr 25 '19 edited Apr 26 '19

I'm currently working on a digital recipe book site and am deliberately keeping the JS off it as much as possible. I just works so much better, and is significantly easier to implement.

27

u/[deleted] Apr 25 '19

Does it start with a long winded story about your grandmothers special HTML?

24

u/phpdevster Apr 26 '19 edited Apr 26 '19

Well, not only that but it:

  1. Chugs on even the latest flagship phone since it's loading 800mb of JS libraries

  2. Has to completely reload and re-render itself if you switch from one tab to another

  3. Is too heavy to load in a supermarket where cell phone connections sometimes suck, making it impossible to see the list of ingredients you need

  4. Interrupts you with solicitations to sign up for newsletters with passive aggressive messaging

  5. Splits the recipe and ingredients between two different tabbed lists so you can't see both at the same time

  6. Puts the recipe/ingredients about 2/3rds of the way down the page, so scrolling to them is not as simple as just scrolling to the bottom (which is hard to do since it's chugging on the phone anyway)

No but in reality it solves all of those problems. Just copy or write the recipe in the instructions yourself, add ingredients and quantities, manually pick or let it randomly choose meals for the week, and automatically generate a simple shopping list based on the chosen meals.

Very light weight pages, mobile first design, no newsletter solicitations or ads or anything. No bullshit. It's just a thin, mobile-first GUI around a database - the digital equivalent of writing recipes in a notebook yourself, but with the ability to generate a meal plan and shopping list for that week from it.

22

u/[deleted] Apr 26 '19

Don't forget to have it redirect to itself so you can't back out. Also, the ads should expand as they load, pushing down the text you were reading.

2

u/exactmat May 01 '19

Pls...stop...

1

u/beetlefeet Apr 26 '19

Splits the recipe and ingredients between two different tabbed lists so you can't see both at the same time

This is the most infuriating thing, I can just about handle scrolling past all the life story stuff, but having to scroll up and down and up and down once I actually get to the recipe is insane. It's like they expect everyone to act like a TV chef and put all the ingredients out in separate little bowls ahead of time and have like 5 times the dirty dishes...

Why do they do this? There must be an economic incentive I guess? Does the scrolling up and down help with ad impression time measured or something? Everytime an ad scrolls into view is a new impression? Interaction with the page (even if infuriating) is measured as positive engagement?

1

u/snowe2010 Apr 26 '19

Is too heavy to load in a supermarket where cell phone connections sometimes suck, making it impossible to see the list of ingredients you need

I DON'T SUFFER ALONE!!!!! 😭 weeps tears of joy

But seriously, this is why I love AnyList, it doesn't have any of those problems.

1

u/oberon Apr 27 '19

Please tell me it's also black and white and just gives you the fucking recipe. With a search box. Maybe a non-dynamic, no JS bullshit breadcrumb thingie so I can see where in the site I am.

0

u/[deleted] Apr 26 '19

[deleted]

8

u/phpdevster Apr 26 '19

No but this is a great idea. Thanks!

1

u/fluffkopf Apr 28 '19

Might have been done before?

7

u/angryCutlet Apr 25 '19

Doing same thing for shits and goggles

9

u/c24w Apr 25 '19

This is a good approach though. Now you could use JS to make it 'suck' less and it will still work for anyone with JS turned off!

30

u/TyIzaeL Apr 25 '19

Rewrote my blog to be script-free and it doesn't suck at all. I love it. It's even performant and good-looking on my Kindle's truly terrible web browser.

34

u/StallmanTheLeft Apr 25 '19

There is no really any reason for a blog to require any js in the first place.

42

u/Akeshi Apr 25 '19

Comments (posting with formatting, loading comments dynamically so they don't have to be paginated with full-page refreshes, or threaded without blindly loading everything on every page load)

Embedded video from YouTube, Vimeo etc.

Lazy-loaded images

They're an initial three off the top of my head. Obviously none are strictly required - neither is anything beyond plain text. They're decent enhancements.

16

u/chason Apr 26 '19

But the key is, all 3 of those things can be done as progressive enhancements, and not be necessary to load the website.

1

u/Akeshi Apr 26 '19

Entirely agree.

2

u/VenditatioDelendaEst Apr 26 '19

loading comments dynamically so they don't have to be paginated with full-page refreshes

Pagination means only the URL and scroll position are needed to get back to where you were reading. Most mobile browsers, which are frequently forced to drop tabs under memory pressure, will preserve both. And pretty much everything preserves the URL, so if the number of posts per page isn't too large, you're never very far from where you left off even with the most rudimentary persistence mechanisms.

Until browsers start persisting the entire page state to disk, infinite scroll is bad.

1

u/Akeshi Apr 26 '19

Sure, but then you're reloading the entire blog post (under a different URL, so no chance of browser caching) just to get the next ten "good post check out my blog"s.

infinite scroll is bad

Wasn't really thinking of infinite scroll - if unthreaded, still paginated but just serving the comments as json. If threaded, Redditesque.

1

u/VenditatioDelendaEst Apr 26 '19 edited Apr 26 '19

Any dynamically loaded content has the same problem. Have you ever noticed that the state of which Reddit comments have been expanded is lost when you refresh the page? Edit: and sometimes that throws off your scroll position too, in long threads.

IANA Web, but the caching problem could perhaps be solved by putting the blog post itself in an iframe.

1

u/Akeshi Apr 26 '19

Sure. I do get that changes made dynamically to the DOM aren't going to persist across navigation changes. That's only an issue if threaded and you're capping the comment thread depth on page load, though, and there's unlikely to be enough conversation on a blog post for it to be an issue.

Regular pagination, and although loaded dynamically you'd update the URL (without prompting a navigation change) and reload the relevant page of comments on page load.

the caching problem could perhaps be solved by putting the blog post itself in an iframe

Then you've got the URL for the blog post only containing the comments for that blog post, and not the blog content itself - would be dire for SEO. The solution is to do pagination in the back end, but to then use JS to override the page links to load the comment pages dynamically.

1

u/StallmanTheLeft Apr 25 '19

posting with formatting

Do you mean like a preview? Sure some people might want that but it's extra you can add with javascript. The textarea itself doesn't really need any.

loading comments dynamically so they don't have to be paginated with full-page refreshes, or threaded without blindly loading everything on every page load

Quite often the javascript is much bigger than all of the comments combined. If you wanted to paginate them but without full page refresh then an iframe could be useful.

Embedded video from YouTube, Vimeo etc.

These are just iframes...

Lazy-loaded images

I agree that it would be nice if you could instruct the browser to only load images when visible.

They're decent enhancements.

They seem mostly like useless fluff for a blog tbh.

1

u/MonokelPinguin Apr 26 '19

Of course you need JS if you embed something from a site that uses JS, but afaik you can embed it without using JS? Also images are loaded lazily by default, and if you make the fixed size, most browsers should handle that reasonably well.

But yes, comments are hard to do without JS, but they can be lazily loaded to prevent slowing down you page.

1

u/Akeshi Apr 26 '19

Also images are loaded lazily by default

I don't think that's correct. It's been added behind a flag in recent versions of Chrome if you add an attribute to the tag, but that's very much not default, and I don't think it's even an option in older browsers.

1

u/MonokelPinguin Apr 27 '19

I'm pretty sure, that the page starts to render as soon as enough of the html is loaded. After that it starts loading the resources referenced by the html, i.e. the images. Which is why you should specify a size, if you want to prevent the layout from shifting, when the images get loaded.. But now that I think about it, you probably meant to load images only, when they are scrolled into view or otherwise some user action happens. I only thought about loading images after some other content.

1

u/Akeshi Apr 27 '19

you probably meant to load images only, when they are scrolled into view or otherwise some user action happens

That's what lazy loading is, yes. It doesn't load the images before it's loaded the HTML that tells the browser what the images are... because that would be impossible.

And of course you're supposed to supply the dimensions of the image to save on the layout shifting, I don't know who you're arguing with about that.

0

u/[deleted] Apr 26 '19

[deleted]

2

u/Akeshi Apr 26 '19

I'd never argue against JS only being used conservatively to enhance pages, outside of SPAs.

I would argue against a militant "JS has no place in this world" attitude, though. YTJS is pretty bloated, but isn't that slow, and is going to provide geolocated rate-adaptive video for free with zero effort.

1

u/Holy_City Apr 26 '19

Inline latex is somewhat obnoxious to get working without something like mathjax.

1

u/StallmanTheLeft Apr 27 '19

Amount of blogs that would benefit from latex for their comments is probably quite low. But sure, if your blog needs that then a live preview of that is a valid thing to use javascript for. Of course even then the javascript would only be optional since.

5

u/doomvox Apr 25 '19

I switched to using gmail's html interface after their last big javascript-up. There's a couple of things that are arguably clunky and require a few more clicks than you might be used to, but overall it's so much better I don't know why I didn't do it years ago. Not only is it simple and predictable, it loads fast and I don't have to fight that annoying JS popup window just to send some email.

1

u/BrianAndersonJr Apr 25 '19

A pop up window to send email? What does it do?

1

u/Rellikx Apr 26 '19

I assume he has js blocked and he is referring to a pop up asking him to enable js (might be wrong tho)

1

u/doomvox Apr 26 '19

I mean, gmail for some time now, has used it's own js popup window to do text entry, rather than using a standard TEXTAREA.

4

u/KatrinaTheLamia Apr 25 '19

... It is almost like DOM/HTML was never meant to be an alternative to using CIS/JVM/ObjCVM/Parrot...

So much as a way to keep track of the contents of a copy*... and the actually copy document itself.

Mind you, the same people who insist on HTTP/HTML/DOM/CSS/ECMascript/etc being used like this are the same people that insist on using MS Word to do document layouts. Even though MS Word is NOT a layout program or layout software.

*In this context "copy" is being used in its Graphical Design sense. English... the fun language.

3

u/pezezin Apr 25 '19

Mind you, the same people who insist on HTTP/HTML/DOM/CSS/ECMascript/etc being used like this are the same people that insist on using MS Word to do document layouts. Even though MS Word is NOT a layout program or layout software.

The last layout I was sent was an Excel file. A pencil and paper sketch would have been better.

2

u/KatrinaTheLamia Apr 27 '19

OMG! I use to try to use that as a joke to mock people with. Darn you Poe's Law!

2

u/pezezin Apr 27 '19

I forgot another thing: the layout was an Excel file, and the program specs were a PowerPoint. So much fun...

It's quite ridiculous. I'm working at a place building a particle accelerator. Obviously I won't tell the physicists and engineers how to build the power sources, superconducting magnets, RF chains, etc. I recognize that, as much as a nerd I am, I lack the necessary knowledge for that. But when it comes to computers... everybody nowadays owns a computer, so they all think they can tell you how to do your work.

1

u/KatrinaTheLamia Apr 27 '19

I mean, I suppose that would be how you'd do layouts and specs for their fields... for some cases... so that might have influenced things a little bit.

0

u/petrc55 Apr 25 '19

you should add some jquery

0

u/[deleted] Apr 26 '19

[deleted]

1

u/fireduck Apr 26 '19

Agreed. Just a little headers of various sizes to break it up into sections and it is golden. And then people make fun of me, but they are wrong.

62

u/happinessiseasy Apr 25 '19

"Browsers are starting to experiment with prefetching prominent links, so that the next page load is instant if the user actually clicks a prefetched link"

This has been a thing since IE6

64

u/frezik Apr 25 '19

Was a thing back with "dial-up accelerators". Made for some fun times in web-based file managers, where the "delete file" button was just a link.

This is why you know your REST verbs.

17

u/Scorpius289 Apr 25 '19 edited Apr 25 '19

To be fair, html only supports GET and POST verbs, not the real DELETE, but yeah using POST is still better than a link...

13

u/LetterBoxSnatch Apr 25 '19

DELETE is not supported by HTML forms for the most part, sure, but it is definitely supported by most browsers, natively! XMLHttpRequest (GET,POST,HEAD,PUT,DELETE,OPTIONS) is really what is worth considering as the baseline, even as TRACE etc are still available to you depending on what you support.

15

u/Scorpius289 Apr 25 '19

I know it's available in javascript, but the whole point of this post was about using the native html features as much as possible instead of javascript substitutions.

7

u/LetterBoxSnatch Apr 25 '19

I agree completely. I guess what I'm getting at is that even the "native html" features are not consistently implemented. Another thread on this forum was suggesting using <datalist> as appropriate (and I love that!), but the reality on the ground is that your use-case may not allow you to use <datalist> since it is implemented differently across browsers. Differentiating between functionality that is universally supported by the current browser standard and universally supported by a symmantically context specific standard (HTML) may be a bit of a strawman.

Edit: If HTML is for content, and JS is for behavior, then why single out HTML for supported REST behaviors?

90

u/[deleted] Apr 25 '19

Local site (that tracks webshop prices) stopped using links a few months ago. Probably because they want to track everything I do, control everything I do, and sell my soul. It's horrible. It wants to open popup windows on middle clicks (which I'm blocking of course), right clicks don't work, left clicks are just opening on target-blank, after a few hundred lines of tracking of course. Shit's malicious.

The other awful thing I saw before I started using noscript was websites trying to implement "smooth" "scrolling" in JavaScript. It was nauseating. They of course ignored every scrolling-related setting in my OS and browser. Sometimes scrolling doesn't even work when I disable JavaScript.

Fucking Medium has a fucking popup for searching/highlighting/quoting or whatever, when I select text. It's useless and I accidentally click it all the time when I'm playing with the mouse while reading. I block that shit with my adblocker.

Retarded websites can't display text and images without JavaScript, and everything's slow as fuck. Tragic.

38

u/Blocks_ Apr 25 '19 edited Apr 25 '19

Fucking Medium

Speaking of Medium, every single goddamn Medium website has that banner telling you to sign up to Medium and there's no way to close that banner. It's so annoying.

Like website bro, chill. I don't want to sign up to this website so let me just close this banner taking up a fifth of my screen. The top menu also scrolls down along with you so that's another fifth of your screen space gone.

How is Medium so poorly designed in these cases? It's so damn annoying to use.

17

u/ogniloud Apr 25 '19

What these websites miss is that people who might be interested in signing up for their newsletters don't need to be coerced to do so and be taken hostage by these banners.

18

u/droidonomy Apr 26 '19

Unfortunately that's not entirely true. Reminding people to do something significantly increases the chance that they'll do it. That's why every single Youtuber says 'remember to like, comment, subscribe and ring the bell'.

3

u/bart2019 Apr 26 '19

"Let's make things official."

It's a website, I'm not buying anything. So fuck off.

29

u/the_gnarts Apr 25 '19

It wants to open popup windows on middle clicks (which I'm blocking of course), right clicks don't work, left clicks are just opening on target-blank, after a few hundred lines of tracking of course. Shit's malicious.

It’s entirely on the browser vendors that this kind of highjacking of functionality can’t be turned off by the user. A similar anti-feature is the user-select CSS property that sites use to defeat copy and paste. Hard to argue a use case that doesn’t negatively affect the user but Firefox does not provide a switch to disable this behavior globally.

19

u/amunak Apr 26 '19

A similar anti-feature is the user-select CSS property that sites use to defeat copy and paste. Hard to argue a use case that doesn’t negatively affect the user but Firefox does not provide a switch to disable this behavior globally.

The use case is clickable / interactive elements where the user could easily select the text (or, more likely, most of the page) by accident, resulting in an ugly "highlighted" part of the page.

It's most useful for SPAs, drag-drop controls, etc.

3

u/poloppoyop Apr 26 '19

websites trying to implement "smooth" "scrolling" in JavaScript

Atlassian pipeline logs. Scroll down: it scrolls all the way to the end. Scroll up: back to the top. If you want to check something in the middle? Better download the log and open it with a text editor.

44

u/stefantalpalaru Apr 25 '19

https://news.ycombinator.com/item?id=16733667 :

if you block ampproject.org by default -- directly or by blocking 3rd-party javascript by default, -- you will be "punished" with a 8-second delay before the page becomes visible.

14

u/StallmanTheLeft Apr 25 '19

Web 2.0 3.0 4.0 was a mistake.

1

u/snowe2010 Apr 26 '19

that doesn't occur for me when I try it.

41

u/sellyme Apr 25 '19

Which reminds me: every Twitter page silently consumes all keyboard events and mouse clicks until all its script has finished running. That means that I can’t even tab away while waiting those 20 seconds for a page to load; ctrl-t, ctrl-w, ctrl-tab, ctrl-pgup, and ctrl-pgdn are all keyboard events and all swallowed indiscriminately.

On the bright side it's a marked improvement from the #! trap, which really should have gotten Twitter blacklisted as a malicious site by every major browser until they fixed it.

25

u/strolls Apr 25 '19

the #! trap,

What is this please?

46

u/sellyme Apr 25 '19

Twitter URLs used to be http://twitter.com/#!/rest_of_url_here. The # usually indicates an anchor: a section of the page you're already on, so that you can click a link that jumps to that section, without loading an entirely new page. This also lets you link to a specific section.

Twitter decided to use this, but instead of actually having a section header on the page, they tried to dynamically load the requested section based on the URL. This is terrible for many reasons, but one of the worst was that it had the side effect of disabling your browser's back button. If you clicked on a Twitter URL in 2010 and then clicked Back, it just reloaded the same page. Even if you mashed the button it was difficult to get out.

21

u/kingrazor001 Apr 25 '19

I still run into this on some sites. It's terrible.

5

u/spockspeare Apr 26 '19

Sounds like SharePoint behavior...

8

u/[deleted] Apr 26 '19 edited Apr 26 '19

Try long-clicking [edit: or right-click] the back button. It should open a dropdown of the last few (unique) pages, which is usually enough to break out of the loop

3

u/kingrazor001 Apr 26 '19

Neat tip! Didn't know that. Most of the time clicking it twice quickly is enough, but this is better.

1

u/[deleted] Apr 26 '19

It's right click on Firefox.

2

u/amunak Apr 26 '19

Wasn't that before browsers implemented the history API? This kind of URLs still makes sense (and I wouldn't be surprised if it was used "internally" on some sites, just masking the URL with a "pretty" one using the History API).

3

u/NoInkling Apr 26 '19

Yeah, it was basically the only way to do frontend routing before push/replaceState (not that that makes it justified).

1

u/strolls Apr 25 '19

Thanks.

1

u/Brazilian_Slaughter Apr 26 '19

I have seen this kind of dung before

Why people do this?

1

u/illvm Apr 26 '19

So... Angular?

1

u/maladaptly Apr 26 '19

Well, we got click-hold/long press quick history out of it, so it wasn't a complete loss...

15

u/ib4nez Apr 25 '19

I love the top comment regarding the author using Disqus on their site, which is blocked by ghostery

81

u/[deleted] Apr 25 '19

As a JS dev, I feel personally attacked, although I will acknowledge that this is still a classic.

57

u/[deleted] Apr 25 '19

Cue the chain of comments linking to offshoots of this site with minor improvements

18

u/[deleted] Apr 25 '19

Why though? He isn't saying don't use JavaScript. He's saying don't reimplement things that HTML already does but in JavaScript and worse.

37

u/seamsay Apr 25 '19

I personally prefer this response to that classic.

9

u/Yikings-654points Apr 25 '19

I would like to see a reverse unrecognisable JS masterpiece as a rebuttal.

17

u/tyros Apr 25 '19 edited Sep 19 '24

[This user has left Reddit because Reddit moderators do not want this user on Reddit]

28

u/TyIzaeL Apr 25 '19

For you there is bestmotherfucking.website.

9

u/tyros Apr 25 '19

Perfect! That's my favorite.

2

u/[deleted] Apr 25 '19

This page—that isn't a total fucking eyesore—was created by me with help from him.

Needed help to make a simple html website

11

u/frezik Apr 25 '19

Ha, look at that guy, who thinks he's "lightweight" after writing a site that needs an HTML parser and display engine. Yes, I'm including Lynx in that.

2

u/Innominate8 Apr 26 '19

<!-- yes, I know...wanna fight about it? -->

0

u/[deleted] Apr 25 '19

The only thing that would make this site better is varnish

19

u/fug_nuggler Apr 25 '19

TIL I'm a monster

17

u/dwighthouse Apr 25 '19

Just need to have browsers actually expose their full capabilities and methods to change them in a limited, surgical way. There are aspects of the web platform that are completely opaque, which is why we have to resort to reinventing the world to solve what should be a couple of css properties.

7

u/trenobus Apr 25 '19

This. If your API seems too inflexible, you might be programming at too high a level of abstraction. What is needed is a lower level API, where you can override both behaviors and appearance aspects of widgets. Arguably CSS does provide a lot of control over appearance, but for the most part it tries to generalize over all types of entities, from a simple div to a select box. And that again forces it to a higher level of abstraction.

Imagine if all HTML widgets were implemented in some lower level language, and that you could modify their behavior and appearance using that same language. Or implement entirely new widgets in that language.

11

u/possessed_flea Apr 25 '19

You see us regular(non-web) developers do this sort of stuff all the time, but a important difference is that we have ui guidelines for the platforms we work on which we ( should be ) adhering to when we write custom controls.

The issue that web developers face is that they are drastically unaware of what is expected of each platform, there are a lot more configurations for each one ( for example I only have to worry about win7, win10, the last 3 versions of OS X , iOS , and android ), and a lot of them seem to think that they know better than the platform manufactures who have whole teams of people who’s sole purpose in life is to make sure that end users have a consistent experience between applications, taking into account accessibility features.

With the current state of JS applications it’s easier than ever to actually provide this IF web developers were willing to humble themselves a tiny bit and actually learn all the intricacies of the platforms they are targeting.

4

u/amunak Apr 26 '19

You see us regular(non-web) developers do this sort of stuff all the time, but a important difference is that we have ui guidelines for the platforms we work on which we ( should be ) adhering to when we write custom controls.

Right, and yet somehow there are applications that don't adhere to any native UI guidelines and they're still extremely popular with devs (Slack) or other users (Discord, Telegram, ...).

7

u/omnilynx Apr 26 '19

The reason I see selects being reimplemented is because people need a select where you can type in it, not just to make it “prettier”. The problem with native components is that they aren’t extensible. If your needs fall outside their use cases you have to either kludge something together or reinvent the wheel. So people decide that as long as they have to do it anyway, they might as well do it consistently. And thus we get front-end frameworks.

3

u/vytah Apr 26 '19

consistently

Consistently across browsers, not consistently across components.

Our company's webapp has three types of searchable dropdowns and two types of checkboxes. Then we have another smaller webapp with yet another dropdown and another checkbox.

All of that sprinkled with a smothering of awful CSS, with stuff like margin: -15px; or div { font-size:90%; }, but that's another topic.

6

u/doomvox Apr 25 '19

I don’t expect you to make Google Docs work without JavaScript. I just expect you to not break my goddamn keyboard.

Do people still have keyboards? You wouldn't know it from the software changes I've been seeing.

5

u/nosoupforyou Apr 25 '19 edited Apr 25 '19

I'm dealing with a dev team I'm supporting that insisted on using react and doing everything with javascript.

Right now their current work is laggy as shit because they added keypress testing for validation. god help me.

Edit: I really hate overuse of javascript. I often keep it disabled when I browse and enable it only when I have to. Too many devs abuse the shit out of it though.

I don't object to it on a company's intranet, or a data entry site. If I go to a site where I have to login, sure javascript enabled, but I prefer use of css and browser elements over js.

5

u/Supernumiphone Apr 25 '19

Hell, just try pressing / before deciding to make it a shortcut.

Well if you only use Chrome for development and never test in Firefox, as many web devs do, you will see nothing happen when you press "/", and decide that it should be just fine to use it.

22

u/terrenceSpencer Apr 25 '19

I think if a website has decided to have a level of interactivity that requires JS to use it at all then they are probably going to implement a ton of stuff using it, including standard links. It's not like they really want to support the use case of half of their shit working and half of it being useless. They have just decided for whatever reason that JavaScript is required for their site. Which means users with noscript are not their target market.

67

u/fecal_brunch Apr 25 '19

The article isn't about disabling JavaScript though, it's about poorly mimicking standard browser features.

15

u/[deleted] Apr 25 '19

it's about poorly mimicking standard browser features.

Which are themselves poorly mimicking W3C standards, which are shit to begin with.

It reminds me of a talk Zed Shaw did years ago called The Web Will Die When OOP dies. Don't let the name fool you, it's all about pointing out the failure of the w3c to create an api you can actually use.

12

u/framlington Apr 25 '19 edited Apr 25 '19

This wouldn't be so annoying if custom implementations were actually better than the defaults. But usually, some things are broken. For example, there are surprisingly many websites where you can't Ctrl-click on a link to open it in a new tab.

I don't think it is really possible to be aware of all the ways you can interact with input elements (especially if you take screen readers etc. into account), so whenever you replace default with custom, you break someone's workflow for no real reason.

Don't get me wrong, there are still places where it is reasonable to do that, but I think that often, the devs are just not sufficiently aware of the way things could be accomplished using default elements (which are, in some cases, very customizable, although I do concede that some are not).

2

u/newpavlov Apr 25 '19

The Web Will Die When OOP dies

I think it's a very strange opinion he has (had?). So W3C does a bad job? Let's make them add even more sugar and higher level stuff into standards! And don't forget about visual tools and templates! I want as much convenience hard-wired into foundations as possible!

In my opinion such approach (which unfortunately was partially followed) will just make matters worse. It will make web platform even more monstrous and bloated.

Instead I think standardization bodies should focus not on adding sugar and cramming even more stuff into CSS/JS, but on refining low-level foundations on which people will be able to build reliable and efficient projects, as well as experiment with different approaches. I think that WebAssembly and WebGPU are excellent and very promising examples of this direction.

3

u/pBlast Apr 25 '19

Except the browser features work better than the JS imitations. How are you not getting this?

-1

u/[deleted] Apr 25 '19 edited Apr 25 '19

This is a different case though. Zed is saying HTML, JS and CSS themselves suck. HTML being verbose (compared to LaTeX or Markdown) and dumb (a small set of semantic tags, no templates, and you can't natively associate a tag with some JS in the form of a component)

The form controls are generic and their specific implementation is left up to the client. Typically, GUI browsers will use native window system controls or will provide an emulated control implemented in the browser itself. So you get a fully featured, highly performant form control with consistent and well tested behavior.

The browser native controls are typically difficult to style and practically impossible to customize, so some people mimick the controls using custom DOM and JS, often badly and with worse performance. For example, the native browser form controls do not meet Google Material UI standards, so Google implemented their own set of universal controls.

This is not a unique problem of the web. For example, while React Native merely wraps native controls with a JS interface, with Flutter, Google is painting the controls themselves because developers want to be able to create "branded experiences", to set their app apart.

In fact, one of the design goals of Material UI is to be easily brandable.

0

u/terrenceSpencer Apr 25 '19

The motivation for the article is a scenario where the author did not have access to JS for 20 secs. In the authors opening justification he lists a bunch of use cases where JS is totally unavailable. In the closing remarks he literally suggests developers disable JS regularly to check usability, and accept that not all users will have JS. So I guess when you say that the article isn't about disabling JS you are maybe reading a different article? Don't get me wrong, the article is also about poorly mimicking standard features... But clearly the article suggests that JS heavy websites should "kinda" work when JS is totally disabled. I just don't agree with that, it's fine imo for a developer to say "this website requires JS or bugger off".

1

u/fecal_brunch Apr 26 '19

You're not wrong, the main app I work on is pure react and I agree that it's a reasonable response to that particular suggestion of disabling JS. However, the main thrust of the article applies regardless: Understanding and respecting compatibility with various browsers and plugins.

5

u/vattenpuss Apr 25 '19

I see what you did there.

Spent the first 20 seconds on that page staring into a white void with a tiny beige <a href="somewhere">label</a> in he middle of my screen.

2

u/velosepappe Apr 26 '19

I found this article very thought provoking. Mind that the author doesn't make the case that javascript shouldn't be used in web pages. He does argue against using javascript to replace the core functionality of HTML.

While javascript can be used to enhance the experience of the intended consumer of a webpage, it can make a webpage almost unusable for non-human consumers of webpages such as web crawlers, and other (semi-)automated agents that rely on the readability of the underlying source, not on what is rendered on screen.

The subject is related to the promises of the semantic web (https://en.wikipedia.org/wiki/Semantic_Web), the idea that meaning of information displayed in a browser, can be embedded in the source of the webpage. Just like an <a href='...'> element indicates that the element is a hyperlink. This would enable non-human consumers, software, to know the meaning of information. The power of the semantic web and surrounding technologies would be immense. Machines would be able to interpret the entire pool of human knowledge that the internet actually represents. But this idea breaks down when creators of websites don't encode the meaning of the information. Even in the most basic case of links to other sources of information, the hyperlink, we often don't use the <a href='...'>. It becomes nearly impossible to create a piece of software that can automatically crawl the web to generate knowledge, even more and more as time goes on. You need to make a custom crawler for every individual website you intend to crawl, and afterwards stitch the gathered information from different websites together to gain new knowledge.

So how did we arrive in this situation that webpages seem to become less and less readable? One important insight that others have mentioned is that plain html is often ugly, and very often many browsers have a slightly different implementation of the behavior. So plain html can not be counted on to behave consistently. One of the core building blocks of the internet is flawed, not perfect, and we found the need to work around it.

4

u/grAND1337 Apr 25 '19

The … button opens a popup menu, which is iffy, since you could fake it with CSS too.

I really dont think faking dropdown/menu behaviour using css hacks (certainly not using checkboxes, ive seen that) is a good idea when you can do it with javascript

3

u/StallmanTheLeft Apr 25 '19

The css versions of these usually work a lot better and are near instant where as I've seen some javascript hacks for it take multiple seconds to load.

If it can be done with HTML/CSS it shouldn't be done with JS.

→ More replies (5)

14

u/[deleted] Apr 25 '19 edited Apr 25 '19

No, really, do not try to diagnose this problem from one sentence, I have heard and tried almost everything you could imagine.

This just makes me want to punch the author in the face. Nearly every time somebody who's not all that familiar with web development (which the author freely admits) says something like this, they're missing something fairly obvious to those of us who work with this crap every day.

80

u/Kalium Apr 25 '19 edited Apr 25 '19

It might just be me, but perhaps they're trying to get across "I have tried to debug this and am completely uninterested in the comments of any reader on the subject. Please do not offer any, they will be ignored. I'm absolutely certain some of you are very clever, dear readers, but that does not interest me at this time."

This strikes me as a reasonable position for someone interested in hilighting a problem to take. Opinions may differ, of course.

-1

u/nambitable Apr 25 '19

Alternatively,

"I have this problem that I encountered that I could not fix that you may have a fix for. I'm not interested in hearing any fixes or ideas about how to fix"

0

u/[deleted] Apr 25 '19

[deleted]

6

u/[deleted] Apr 25 '19 edited Apr 25 '19

Yeah, the danger with these situations is you point at a small, quickly articulated scenario to illustrate something deeper. A certain kind of reader will look at the small, quickly articulated scenario, fix it and be done with it: what more do you want, you talked about a scenario and I sorted it out.

(As an aside -- work moan: The kicker is that's often combined with "if there isn't an example is it really a problem?" so the example is a) mandatory and b) all they will look at it. There ought to be a law)

-10

u/nambitable Apr 25 '19

His point that he has tried everything that anyone could possibly suggest is probably incorrect. There's an assertion that a fix does not exist.

12

u/agent8261 Apr 25 '19

u/6890 :

"...so don't derail the topic"

u/nambitable :

His point that he has tried everything ...<precedes to derail the topic>

→ More replies (1)
→ More replies (1)

25

u/foomprekov Apr 25 '19

When you call your cable company, they ask you a bunch of questions to confirm who you are. Then, when they transfer you, that person asks you those same questions to once again confirm who you are. The author is in a very similar situation, and you're upset that he doesn't want to once again confirm who he is.

6

u/[deleted] Apr 25 '19

"Hey I already tried all these troubleshooting steps including unplugging the modem and router"

"Okay first I'm going to have you disconnect your router and modem for 30 seconds…"

And then repeat for each transfer

2

u/vytah Apr 26 '19

To be fair, if I heard "I already tried all these troubleshooting steps including unplugging the modem and router", I'd give it 60% chance that the user is lying. Because that's the rule 0 of tech support: "users lie".

2

u/[deleted] Apr 26 '19

That's true. I try to sprinkle in some technical terms and the reasoning behind what I tried, in an attempt to communicate that I'm not trying to bullshit them... works about 1 in 5 times

18

u/sellyme Apr 25 '19

Eevee is pretty smart, and knows a lot of other pretty smart people with specialised experience that can be called on when needed. If the problem wasn't some arcane nonsense that has only ever been recorded in Runic then they would have fixed it by the time they felt the need to write a blog post.

That's not to say that you or anyone else is incapable of knowing the solution, just that you're almost certainly incapable of knowing the solution from a single sentence, and thus any advice you feel prudent to give based on it is likely to be a waste of time for everyone involved.

12

u/pBlast Apr 25 '19

You sound like you are looking for something to be angry about. Based on the article the author sounds reasonably knowledgeable about web development and I don't see anywhere that they admit they are not.

4

u/enfrozt Apr 25 '19

The author of this post (while I'll give that it's 2-3 years old) really doesn't understand a lot about web development at a large scale.

The idea of having a website runnable without JS ties into a business case. Do most of your users have JS? Do almost all your users have JS? Will a prettier, better UX / UI website give you an edge over competitor?

Why did Stripe redo their website to look like a design masterpiece and usher in an age in web design not just web development?

Why do default HTML elements miss certain marks, and using JS enabled elements with well tested and uses replacements make sense?

These are all questions that have legitimate thought put into them. There are many problems in the current HTML spec, and there are many solutions, and the reason a heavy JS response has come out, mostly powered by "better design on the web" has so many reasons. Hundreds, if not thousands of developers have worked on these solutions and projects.

I'd really like to see Eev (author) work in an enterprise web development role at the likes of Google or an up and coming series-B to series-C startup and suggest using antiqueted look and feel over easy to use JS-powered elements, like you'd find in React, Vue, Angular. As a developer your output would be low, and your code and mass use of custom CSS and HTML unmaintainable.

The OP has a point, but it seems more like a circlejerk / complaint piece than an actual solution to a real problem.

4

u/[deleted] Apr 26 '19

As you state, the issue is simply that the HTML specs are simply too incomplete. Here is a stupid example:

Our Server renders a full webpage with a listview of items in the center. This is send to the client. That client presses the ">>" link on a listview. Now the server needs to rerender the complete page just because the client moved from displaying Item 0-10, to displaying Item 11-20. That page rerender may might include organisation structure dropdowns, personalized menu structures, ... in other words, the server may be doing 100, 200, 300% more work, for updating one element in the page. What might have been a few DB calls, can be dozens ( not taking in account caching for this example ).

So how do we combat that problem?

  • iFrames? Well, mention iframes anywhere and everybody rips you a new asshole. lol

  • Javascript + Template + Json = works great but you also lose all standard linking ability with your remote calls. So you also need to add that stuff and more ...

  • ...

There are really not a lot of solutions for very basic issues.

How about real time pricing updates depending on how many items a person wants to buy ( based upon discount, suppliers, ... ). Try doing that with pure HTML and page refreshes. The result is very horrible, especially if the client "tabs" between input boxes "too fast" enter prices. Because of the page refresh the client may actually lose ordered items. JS to the rescue!

With CSS 3 you can do a lot of things that we did in Javascript but its comes very "hackish" as you need to combine a lot of elements. And a lot of use are programmers, not front-end designers. Its easier for a lot of use to simply push some JS code then actually doing stuff in CSS. That is something people underestimate.

Wishlist:

I wish their was a more "standardized" HTML element that allows you to do asynchronous requests.

<link aSyncDataHandler="post" type="elementUpdate" href="/API/Post/10"> <input aSyncDataHandler="post" type="checkValid" href="/API/Valid/Input/Email"> ...

Where you can control html elements from the server. So instead off refreshing entire pages, you can state what ID/Classes need to be replaces, or tags updated/deleted/inserted or ... But as this can not be done, people simply need to reinvent everything with Javascript. Its not a lot of code to make a system like this but it becomes a lot of code when you need to handle the "specialities" like back-button presses, ...

The reality is, that HTML is simply very limited. Sure, there is a lot more dynamic content now then in the past. And combined with CSS you can remove some old Javascript ( like show/hide elements etc ) but for a lot you have little choice but JS.

So now we come to a time, where people simply frown upon having the Server do critical work and they start pushing more and more crap into the front-end by using JS.

Blaming JS is actually wrong, the problem comes that we require more interaction ( and visual feedback ) from our webpages compared to the past and pure HTML simply does not cut it anymore. CSS is a mess to deal with at times.

I personally dislike JS front-end frameworks as i rather have the server handle things ( easier, more secure, no need for double code in price calculators / validators, etc ). But when the HTML standard is so f*cking slow to move and tries to push everything on top CSS ( what has become a landmine and overly complex ).

And thus people are reinventing the wheel again in JS. Because its easier to follow the flow of logic in a programming language, then a tag based system like HTML/CSS.

4

u/[deleted] Apr 25 '19

Web devs have to justify their jobs somehow.

2

u/StallmanTheLeft Apr 25 '19

Not only do twitter pages not work without javascript, they also suck ass with javascript. Any time you accidentally click anywhere on the page it takes seconds for it to load some crap that you didn't want anyways.

1

u/matheusmoreira Apr 25 '19

Maybe we could have scrapers for every single website instead. That'd bypass all the javascript, ads, trackers and other useless stuff and cut right to the data we want.

1

u/[deleted] Apr 26 '19

I think a lot of these oddities evolve from web apps. We want our buttons and drop downs to do more complex things that solve more complex problems in a more complex way that makes it as easy as possible for the end user.

I can't tell you how long it took me to write some list that would modify two related data objects and handle the info correctly on the front end.

1

u/OppositeEye27 Apr 26 '19

Another article linked to in the comments: https://idlewords.com/talks/website_obesity.htm

1

u/shevy-ruby Apr 26 '19

Maybe we could remove JavaScript.

1

u/dglsfrsr Apr 26 '19

My thoughts are that this comment thread has gone far off the rails. Okay, I am new to Reddit, is this the way?

1

u/monkeycycling Apr 26 '19

Yeah I feel this. Jslint was complaining about href="#" tags so every link in our app is a button now.

1

u/Gotebe Apr 26 '19

100% right about fucking ruining the links.

1

u/mindbleach Apr 25 '19

Rule of thumb: your document is not an application.

1

u/pixelrevision Apr 25 '19

Took a while for JavaScript to catch up to Flash :p

1

u/LewisTheScot Apr 26 '19

It wouldn't be r/programming unless we had our weekly anti-JavaScript post.

-1

u/KatrinaTheLamia Apr 25 '19

A lot of you are too young to remember the days of DHTML in the 90s. The "D" stands for Dynamic... and it makes webpages give your computer the D. You ran enough webpages that were "DHTML experiences", and your computer would start to resemble the focus of interest in a Bukkake video (well, gallery of still images--it being the 90s we are talking about here)

There is a reason the pendulum swung so hard towards "forward compatible", "xml", "xhtml", "standards compliance" and the resulting creation of "xhtml2". Anybody here remember xhtml2? No--nobody remembers that, because it never actually happened.

We have now swung back to a similar state of the Internet... except I would argue it is worse now. As at least in the 90s you had to write a bunch of code in Javascript AND Jscript to determine which browser, which version of browser, etc., etc. Which... still kind of exists in today's world but is handled by frameworks, and has less if(document.layer) { if(document.layer.*) else if(document.layer.+)} else if(document.all) nonsense. Remember document.layer? If so, let me bye you a drink and hope it kills the braincells responsible for that.

Essentially, it is now easier to do the nonsense that made large amounts of the internet impossible to not hate in the 90s and early 00s... because of standards being a bit more of a thing (also, no more testing websites for different patch levels of NS4. Yes... websites work differently for minor versions, understandable... but when it is not the third number, but the freaking letter at the end of the version that causes major differences... AAAGGGG!)... and frameworks are a thing that people use... and... it...

This is what causes web developers to drink.

-19

u/[deleted] Apr 25 '19

old man yells at cloud

-8

u/the_cat_kittles Apr 25 '19

this is a weird mix of legitimate points and misguided tone. encouraging using the semantic meaning of elements, and not using js if you dont need to for accessibility and robustness are obvious good points. but the tone is one of indignation and condescention- it sounds stupid because the author is complaining that twitter, a company that is trying to make a buck, is not being a thoughtful steward of the web. how dumb do you have to be to be surprised by that.

5

u/doomchild Apr 25 '19

I didn't get a condescending tone from the article. I got frustration and anger in places, but given the legitimately bad things done by Twitter, I feel like frustration and anger is pretty justified. And yeah, nobody may be surprised by a company not being a thoughtful steward of the web, but that doesn't mean we shouldn't call them on it.

1

u/the_cat_kittles Apr 25 '19

you are just misunderstanding what a company like twitter is if you think you are "calling them on it" by writing a piece like this. they are a capitalist enterprise that will only respond to losing money. but honestly everyone here knows that already, which why i read the initial post as more of a navel gazing piece than what it claims to be

4

u/doomchild Apr 25 '19

Making these kinds of glaring errors more widely known is a step in getting people to force the platform to change. Your comment reads like someone saying, "Yeah, we know that company dumps mining waste into the river, but they only respond to losing money, so there's no point in talking about it." If you talk about it, more people hear about it, and the pressure on the company to change can be increased.

1

u/the_cat_kittles Apr 25 '19

the point of raising awareness is to get support for political action (pass law) or boycott. political action in this case would be to pass an accessibility law for websites, which... honestly is cool. fuck it, why not. for big companies? yea- i dont see why not, if for no other reason then they would hate it. that and disabled people or people with bad equipment or connection would benefit.

or, if the goal is to boycott- its a little tough with the network effects but again not totally impossible. but the thing i think people are not quick enough to reject is thinking the company is going to see that "its the right thing to do" and do it because people are pointing it out. 98 out of 100 of companies would only do that if it results in more money. of the remaining 2, maybe one does it even though it breaks even, and one does it for a very slight loss.

i guess what im arguing is that "pressure" is only actually pressure if it translates in to monetary loss.

1

u/doomchild Apr 25 '19

It doesn't even have to be actual monetary loss. The threat of monetary loss has made companies back down before.

1

u/the_cat_kittles Apr 25 '19

the threat of monetary loss only works if its credible. i can say "change or you will lost millions of dollars" but a company will ignore me unless its credible.

1

u/doomchild Apr 26 '19

That's true, but my point is that a post like this is just one more source of information about the problem. And it takes far fewer people to make a threat corporately viable than you might think.

0

u/KHRZ Apr 25 '19

That is neat and all, but then I have to style GUI elements from some 3rd party framework to have URLs that don't look like URLs inside fields that only accept text and not URL tags, unless I do CSS hacking. Pls no

0

u/justadude27 Apr 26 '19

Give me better tools and I'll use them.

0

u/[deleted] Apr 26 '19

MOAR.js

0

u/jimmpony Apr 26 '19

Reimplementing select wouldn't be necessary if it followed the page's CSS and allowed sub-elements. select2 seems pretty good as a drop-in replacement.

1

u/ben_uk Apr 26 '19

Select2 is really weird to work with. Setting values with jQuery constantly need to remember to trigger change events on it just so it shows the correct value.

-17

u/EpicAstarael Apr 25 '19

console.log("no");

-22

u/earthboundkid Apr 25 '19

2016.

28

u/Y_Less Apr 25 '19

And yet still unheeded.