3 ms·
yea but does hn have any client side js?
by sitzkrieg 3y ago
yea but does hn have any client side js?
- codetrotter 3y agoYeah, a very small amount so that clicking the upvote button does not need to reload the whole page
- hot_gril 3y agoCan confirm, HN relies on client-side JS for voting and collapsing, but view/post/edit/delete don't need it.
- sitzkrieg 3y agomakes sense, thanks for the clarification yall
- bmacho 3y agoUpvoting does work javascript disabled, it upvotes and reloads the page. It approximately keeps your position by jumping the message anchor.
- codetrotter 3y agoI know it works with js disabled as well. But with js enabled they send just the upvote instead of reloading the whole page. Saving network traffic. Unfortunately the js used is very minimal. And if the upvote fails, there is no graphical indication that it failed to upvote.
- deleted 3y ago[deleted]