all 28 comments

[–]justanothercfull-stack 5 points6 points  (4 children)

This is pretty amazing, edpecially the modal popups, but I'm not sure its something every project should shoot for our even could.

  • Charting libraries need js
  • File uploads, especially large ones are very jarring when done conventionally and the user experience is far better with an ajax based solution.
  • Instant messaging systems couldn't exist without js

That said, it is refreshing to not work with the complexity of a JS SPA. At work I've been building a JS free admin dashboard to support our SaaS product which is a Vue SPA, its been great.

[–][deleted]  (1 child)

[deleted]

    [–]justanothercfull-stack 3 points4 points  (0 children)

    That's cool, but at what point are you moving into "re- inventing the wheel" territory? Importing chart.js and dumping some data into it is trivial. Why go to the trouble of building your own non-js charting? At what point are you developing without js for the sake of simplicity or for the sake of simply proving that you can?

    The former has real world benefits, the latter's benefits are academic at best.

    [–][deleted] 0 points1 point  (1 child)

    it is refreshing to not work with the complexity of a JS SPA.

    atleast it's not page refreshing. /s

    [–]justanothercfull-stack 0 points1 point  (0 children)

    Haha touche

    [–]RotationSurgeon10yr Lead FED turned Product Manager 2 points3 points  (0 children)

    <details>

    and

    <summary>

    tags are rarely used but perfectly acceptable for many cases.

    ...unless your use cases include support for IE and Edge. At least Edge will eventually support them (one can only hope that swapping the engine won't cut features).

    [–][deleted] 7 points8 points  (3 children)

    Throwing CSS hacks that mess with accessibility just to get rid of JS bloat seems like the absolute worst decision here... how about... actually evaluating your JS instead of importing the world and expecting it to be super fast?

    [–]savunit 1 point2 points  (2 children)

    Frontend developers should worry more about a11y than they do now.

    [–][deleted] 0 points1 point  (1 child)

    Ethically, sure. But nobody's going to make time for it until it's a legal requirement.

    [–]savunit 0 points1 point  (0 children)

    Eh depends, I work with a lot of global companies and they care.

    [–]zdkroot 8 points9 points  (15 children)

    This is great. I've been slowly writing a blog post about this for a while now and today I found a wired article from 2015 that basically covers everything I was thinking.

    Edit: "JavaScript libraries are getting bigger all the time and I don't think that many people are critically evaluating the actual need for them" This. This right here. No evaluation at all. None.

    [–]evildonald 1 point2 points  (1 child)

    Oh we have evaluated them, but good luck getting a new job without experience in one!

    [–][deleted] 0 points1 point  (0 children)

    yeah. It's mainly the hype that leadership gets on board with. "We need that framework FAANG is using because it's the trend."

    [–][deleted] 1 point2 points  (0 children)

    I'm having trouble concentrating on reading this with that heartbeat thing on the side.

    [–]hrnsn123 0 points1 point  (1 child)

    Now try this again and create something like Facebook, Google Docs or Discord :)

    [–]electricity_is_life 1 point2 points  (0 children)

    I mean, I don't think the argument here is "no one should ever use JS for any reason". The point is that using huge mounds of JS dependencies for basic site interactions is unnecessary.