Hacker News new | past | comments | ask | show | jobs | submit login

Care about your users: don't use javascript.



Care more about your users: use less javascript


Care about your viewers, don't make a 6 minute video to convey a two sentence message (that is probably wrong)...


agreed for websites, they don't need any JS (css-only dropdown with :hover/:focus-within, modal with :target, collapsed content with <details>, etc..)

for a more complex web-app/dashboard it's a bit harder to avoid JS


What’s the difference between a website and a web app?


Does it need AJAX to do its job?

A blog does not. An interactive chat application does.


What if you want, say, continuous scrolling in your blog?

What's the point of advocating against client-side rendering if the alternative is server-side rendering that only covers some of the features you want?


Trust me, I REALLY do not want most of the features that people trying to shove on me with JavaScript. Continuous scrolling is a wonderful example. My experience of continuous scrolling is that I can't find where I saw something with a search, because the text literally is not there to be found. I also have no idea how far I really have to go. And there is a good chance that the person who implemented it will fail to create proper URLs.

In general when I see people recreating browser features (like display layout) using JavaScript, they do a strictly worse job of it than what is already built in to the browser. Most JavaScript therefore makes my life worse.

But there are things that can be done which are not possible any other ways. Interactive games, live chats, the scrolling in Google Maps and so on. They can be great. But far too often, they aren't. :-(


Continuous scrolling doesn't belong in a blog if you want the blog to be readable.


How many angels can dance on the head of a pin?


Those fancy CSS-only are often awful for accessibility.

Care about all your users: use what you need to use.


:focus-within is the fix for accessibility https://css-tricks.com/solved-with-css-dropdown-menus/




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: