News for hackers. Stuff that matters.
Re:When Does a Project Need React? by jasode on Monday April 24, 2017 @03:04PM (#14187045)
>If your page loads quickly and not all that often, you can get pretty far without Javascript. If you are willing to tolerate a pageload on each interaction, you don't need any Javascript.

To put some concrete examples to that...

The HN page uses javascript[1] for the upvote/downvote buttons and also to collapse/expand comments. It would be very disruptive and jarring to reload an entire page after someone clicks a vote button. Also, mobile phone users would be doubly punished since a page reload is slower than desktop highspeed internet.

A good example of a website not requiring javascript without penalizing user-interface usability is Wikipedia text pages.

[1] https://news.ycombinator.com/hn.js

There are no comments on this comment yet.