9 ms·
Yes, it does. I think you have something weird with your browser: with JS on, it does a light AJAX request, without it, it does the whole redirect thing.
by icebraining 7y ago
Yes, it does. I think you have something weird with your browser: with JS on, it does a light AJAX request, without it, it does the whole redirect thing.
- oplav 7y agohttps://i.imgur.com/9z2VAfa.png https://i.imgur.com/9z2VAfa.png These are my network requests when I vote with JS enabled.
- manigandham 7y agoThe request is the same. The buttons are <a> tags. Without JS, the link is clicked and does a full page reload. With JS, the click is caught and sent as a AJAX request where the response is ignored. It's not any lighter, it's just not reloading the page.
- Deimorz 7y agoWhoops, you're right, it does work either way. The response is the same with or without JS though, it just doesn't do anything with it when JS is enabled (because as a hacky way of doing "AJAX" it sets the voting url as the src value of an <img> tag that doesn't actually get displayed).