3 ms·
>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, yo
by jasode 10y ago
>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 https://news.ycombinator.com/hn.js