Live data from Hacker News

You might not need JavaScript

youmightnotneedjs.com

141–150 of 254 posts

Re: You might not need JavaScript

#142
This is all fine, but how do you open a modal and appropriately label the DOM nodes with ARIA attributes without JS (aria-hidden, aria-expanded)?

The answer is, you don't. Hope you don't care if the visually disabled can use your site or not!

Re: You might not need JavaScript

#143
When I was hired on the Watson team, the first thing they asked me to do was help improve performance of their AngularJS-based website. It was all-around slow, especially for the initial page view. I stripped out AngularJS and most of the other JavaScript, and published a website that was almost pure static HTML. It loaded very quickly. My manager thought it was hilarious - his "JavaScript expert" came in and deleted all of the JavaScript.

Re: You might not need JavaScript

#144

When I was hired on the Watson team, the first thing they asked me to do was help improve performance of their AngularJS-based website. It was all-around slow, especially for the initial page view. I stripped out AngularJS and most of the other JavaScript, and published a website that was almost pure static HTML. It loaded very quickly. My manager thought it was hilarious - his "JavaScript expert" came in and deleted…

As a developer, I find more pleasure in deleting code than writing it. It might have been hilarious, but I wasn't surprised to read that :)

Re: You might not need JavaScript

#145

When I was hired on the Watson team, the first thing they asked me to do was help improve performance of their AngularJS-based website. It was all-around slow, especially for the initial page view. I stripped out AngularJS and most of the other JavaScript, and published a website that was almost pure static HTML. It loaded very quickly. My manager thought it was hilarious - his "JavaScript expert" came in and deleted…

More than hilarious, I find it a serious skill manifestation.

Re: You might not need JavaScript

#146
post #85

So let's show off what you can do without JavaScript...but also include SCSS as a dependency when the opening paragraph complains about a JavaScript dependency? Madness...but I digress. Some of these are cool examples. Others, like the modal, won't scale very well because now you can trigger modals by tabbing (breaks keyboard navigation) or most of the form examples as you'll likely hit many endpoints that require JS…

Compile time requirements and runtime requirements are different things.

My 100$ smartphone came from a 5B$ factory.

Re: You might not need JavaScript

#147

When I was hired on the Watson team, the first thing they asked me to do was help improve performance of their AngularJS-based website. It was all-around slow, especially for the initial page view. I stripped out AngularJS and most of the other JavaScript, and published a website that was almost pure static HTML. It loaded very quickly. My manager thought it was hilarious - his "JavaScript expert" came in and deleted…

More than hilarious, I find it a serious skill manifestation.

A large percentage of the "very skilled" developers I know will much sooner brag about how much code they deleted or didn't write than how much code they wrote.

Re: You might not need JavaScript

#148

Does anyone else feel that a site called "You Might Not Need Javascript", probably shouldn't use Javascript?

I was reading it with javascript disabled and very confused - are there only code snippets and no visualization of the examples? After reading your comment, I went back and enabled javascript and now can see the examples.

Re: You might not need JavaScript

#149

Earlier quoted context omitted.

More than hilarious, I find it a serious skill manifestation.

A large percentage of the "very skilled" developers I know will much sooner brag about how much code they deleted or didn't write than how much code they wrote.

That is already well known quality[1]. I find Parent work even deeper, he pivoted the whole thing to make his main skill a second class citizen because that's what it was to be in this context.

[1] I regularly nerdgasm at LibreOffice releases reading how many thousands LoC they removed from the code base.

ps: beside code golf, I think there should be a patch golf thing. Try the smallest changeset that fixes or add a feature.

Re: You might not need JavaScript

#150
post #77

Earlier quoted context omitted.

Same. Didn't even knew that exists. Awesome.

Same here and it seems fucking amazing. I'm beginning to wonder how many more html-things like this I don't know about?

If this is your first time hearing about caniuse, then you likely also want to know about html5please.com as well; if you haven't already.
Post reply on HN