4 ms·
the list of sites on https://hnpwa.com/ https://hnpwa.com/ vs this https://news.ycombinator.com/ https://news.ycombinator.com/
by thinkxl 9y ago
the list of sites on https://hnpwa.com/ https://hnpwa.com/ vs this https://news.ycombinator.com/ https://news.ycombinator.com/
- SquareWheel 9y agoWould you prefer that Hacker News reloaded the page every time you voted on a comment?
- thinkxl 9y agoI wouldn't mind. But it doesn't work that way, look: https://vimeo.com/58808364 https://vimeo.com/58808364
- SquareWheel 9y agoInteresting video, but it still seems to be a JS-driven technique?
- kccqzy 9y agoEven without JS, there are tricks to make the upvote button work without refreshing the page. HN used to do this, not sure if it still does.
- SquareWheel 9y agoDo you have a reference to any of those tricks? Sounds interesting.
- framp 9y agoYou could use a link with a background-image <style>.vote-42:active{ background-image: url(/api/vote/42) } </style> <a class="vote-42">Vote</a>
- SquareWheel 9y agoI ran a quick test. That actually seems to work, at least in Chrome. Very cool! https://codepen.io/anon/pen/weMwRz https://codepen.io/anon/pen/weMwRz Realistically, I'd probably never use it because it's so dependent on browser behavior, but still a cool alternative.